Install Vim config

main
Jef Roosens 2022-12-03 13:40:32 +01:00
parent 0712ca3e76
commit f2f99a932d
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
3 changed files with 26 additions and 12 deletions

View File

@ -3,7 +3,7 @@
hosts: all hosts: all
become: yes become: yes
roles: roles:
- packages - base
- net-security - net-security
tags: base tags: base

View File

@ -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"

View File

@ -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