ansible-homelab/roles/vimrc/tasks/main.yml

24 lines
534 B
YAML
Raw Normal View History

2023-06-04 19:10:27 +02:00
---
# tasks file for vimrc
- name: Clone vimrc gist
ansible.builtin.git:
repo: https://gist.github.com/90c3b2fcc9d70cf06e9f3660e0d15a48.git
dest: /tmp/vimrc
- name: Copy vimrc to /root/.vimrc
ansible.builtin.copy:
src: /tmp/vimrc/.vimrc
dest: /root/.vimrc
remote_src: true
owner: root
group: root
- name: Copy vimrc to /home/{{ user }}/.vimrc
ansible.builtin.copy:
src: /tmp/vimrc/.vimrc
dest: "/home/{{ user }}/.vimrc"
remote_src: true
owner: "{{ user }}"
group: "{{ user }}"