22 lines
553 B
YAML
22 lines
553 B
YAML
|
- name: Clone private repo
|
||
|
git:
|
||
|
repo: "{{ private_repo }}"
|
||
|
dest: "{{ playbook_dir }}/private"
|
||
|
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:
|
||
|
src: "{{ item.src }}"
|
||
|
dest: "{{ install_path }}/{{ item.path }}"
|
||
|
mode: 0600
|
||
|
force: "yes"
|
||
|
with_filetree: "private/skel/"
|
||
|
when: item.state == 'file'
|