Last active
June 23, 2019 08:41
-
-
Save silverskyvicto/15be765495a34726f040e8fcb12e5f11 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Install vim | |
hosts: {{server}} | |
become: yes | |
tasks: | |
- name: Install a list of development tool packages | |
yum: | |
name: | |
- gcc | |
- autoconf | |
- ncurses-devel | |
state: present | |
- name: Clone vim from git repository | |
git: | |
repo: 'https://github.com/vim/vim.git' | |
dest: /usr/local/src/vim | |
clone: yes | |
- name: Build | |
make: | |
chdir: /usr/local/src/vim | |
- name: Build 'install' | |
make: | |
chdir: /usr/local/src/vim | |
target: install | |
- name: Delete vim repository | |
file: | |
path: /usr/local/src/vim | |
state: absent | |
- name: Add a vim alias | |
lineinfile: | |
path: /root/.bash_profile | |
line: alias vi='vim' | |
- name: source .bash_profile | |
shell: source /root/.bash_profile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment