Added private again

This commit is contained in:
Austen Adler 2018-07-07 13:51:42 -04:00
parent 8a26df4c74
commit 0af1e2d9d1
2 changed files with 22 additions and 1 deletions

2
.gitignore vendored
View File

@ -1,4 +1,4 @@
.stfolder
main.retry
private
/private
.env

View 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'