Added private again
This commit is contained in:
parent
8a26df4c74
commit
0af1e2d9d1
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,4 +1,4 @@
|
|||||||
.stfolder
|
.stfolder
|
||||||
main.retry
|
main.retry
|
||||||
private
|
/private
|
||||||
.env
|
.env
|
||||||
|
21
roles/private/tasks/main.yml
Normal file
21
roles/private/tasks/main.yml
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
- 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'
|
Loading…
x
Reference in New Issue
Block a user