linux_ws2122_ansible/roles/vim/tasks/git-clone.yml

20 lines
535 B
YAML
Raw Normal View History

2021-12-11 21:46:32 +00:00
---
- name: "getent for user {{ item.user }}"
getent:
database: passwd
key: "{{ item.user }}"
- name: "clone vimrc repository for user {{ item.user }}"
git:
repo: https://git.cryptic.systems/volker.raschek/vim.git
dest: "{{ getent_passwd[item.user][4] }}/.vim"
version: "{{ item.branch }}"
- name: correct permissions
file:
path: "{{ getent_passwd[item.user][4] }}/.vim"
owner: "{{ getent_passwd[item.user][1] }}"
group: "{{ getent_passwd[item.user][2] }}"
state: directory
recurse: yes