sync/roles/private/tasks/main.yml

23 lines
600 B
YAML
Raw Normal View History

2018-07-07 13:51:42 -04:00
- name: Clone private repo
git:
repo: "{{ private_repo }}"
2018-07-08 00:51:09 -04:00
dest: "{{ sync_path }}/private"
2018-07-07 13:51:42 -04:00
clone: yes
update: yes
- name: Create priavte directories
file:
path: "{{ install_path }}/{{ item.path }}"
state: directory
force: "{{ overwrite_existing }}"
with_filetree: "private/skel/"
when: item.state == 'directory'
- name: Copy priavte files
copy:
2018-07-08 00:51:09 -04:00
src: "{{ sync_path }}/private/skel/{{ item.path }}"
2018-07-07 13:51:42 -04:00
dest: "{{ install_path }}/{{ item.path }}"
2018-07-08 14:54:45 -04:00
remote_src: yes
2018-07-07 13:51:42 -04:00
mode: 0600
force: "yes"
with_filetree: "private/skel/"
when: item.state == 'file'