Install Vim config
parent
0712ca3e76
commit
f2f99a932d
2
main.yml
2
main.yml
|
@ -3,7 +3,7 @@
|
||||||
hosts: all
|
hosts: all
|
||||||
become: yes
|
become: yes
|
||||||
roles:
|
roles:
|
||||||
- packages
|
- base
|
||||||
- net-security
|
- net-security
|
||||||
tags: base
|
tags: base
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,25 @@
|
||||||
|
- name: Install packages
|
||||||
|
apt:
|
||||||
|
name:
|
||||||
|
# Needed for handling GPG keys for repositories
|
||||||
|
- debian-keyring
|
||||||
|
- debian-archive-keyring
|
||||||
|
- apt-transport-https
|
||||||
|
|
||||||
|
# Easy to edit files
|
||||||
|
- vim
|
||||||
|
- tmux
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: Install Vim config
|
||||||
|
get_url:
|
||||||
|
url: 'https://r8r.be/vim'
|
||||||
|
dest: '{{ item.dest }}'
|
||||||
|
owner: "{{ item.user }}"
|
||||||
|
group: "{{ item.user }}"
|
||||||
|
mode: '644'
|
||||||
|
with_items:
|
||||||
|
- user: debian
|
||||||
|
dest: "/home/debian/.vimrc"
|
||||||
|
- user: root
|
||||||
|
dest: "/root/.vimrc"
|
|
@ -1,11 +0,0 @@
|
||||||
- name: Install packages
|
|
||||||
apt:
|
|
||||||
name:
|
|
||||||
# Needed for handling GPG keys for repositories
|
|
||||||
- debian-keyring
|
|
||||||
- debian-archive-keyring
|
|
||||||
- apt-transport-https
|
|
||||||
|
|
||||||
# Easy to edit files
|
|
||||||
- vim
|
|
||||||
state: present
|
|
Loading…
Reference in New Issue