ansible-pilote/tasks/vim.yml
Julien Riou 38fef42aa6
style: Add ansible-lint
Signed-off-by: Julien Riou <julien@riou.xyz>
2024-05-10 13:32:56 +02:00

14 lines
354 B
YAML

---
- name: Install vim packages
ansible.builtin.apt:
name: vim
state: present
- name: Copy configurations
ansible.builtin.copy:
src: files/vim/vimrc
dest: "{{ '/root/.vimrc' if item['name'] == 'root' else '/home/' + item['name'] + '/.vimrc' }}"
mode: '0644'
loop: "{{ users }}"
loop_control:
label: "{{ item['name'] }}"