Ansible Tips (IDE, Vim)

Ansible Tips for advanced productivity using GUI(IDE)
Feb 23, 2024
Ansible Tips (IDE, Vim)

Introduction

Thank you for clicking through to my arcticle. I've been a DevOps engineer for 2 years in dev-team of 7 engineers.

My name is MINSEOK, LEE, but I use Unchaptered as an alias on the interenet. So, you can call me anythings "MINSEOK, LEE" or "Unchaptered" to ask something.

Topic

  • Use IDE Supports with Vim

Prerequisites

  1. What is the Ansible?

  2. How to configure practice environment of Ansible?

  3. What is the Ansible Core?

  4. Ansible with PUTTY

  5. Ansible Practices

  6. Ansible Playbook

Install vim-plugin

  1. Install ansible-vim
    https://github.com/pearofducks/ansible-vim#installation

curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
  1. Set-up vimrc file using vi ~/.vimrc

vi ~/.vimrc
# New
call plug#begin()

Plug 'pearofducks/ansible-vim'

call plug#end()
# Legacy
call plug#begin('~/.vim/plugged')

Plug 'pearofducks/ansible-vim'

call plug#end()

  1. Install plugins for ~/.vimrc

yum install vim-enhanced -y

yum install git -y

  1. Execute vim and type :PlugInstall in vim terminal.

vim

:PlugInstall

:q
:q

  1. Set-up alias vi to vim.

vi ~/.bashrc
# Add this line in last line
alias vi='vim'

  1. Reload

su -
Share article
RSSPowered by inblog