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