ansible-homelab/roles/vimrc/tasks/main.yml
Jeffrey Serio b301937c7d Add vimrc
2023-06-04 12:10:27 -05:00

24 lines
534 B
YAML

---
# 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 }}"