From 0af1e2d9d1f808f0d6fd1ef5c56bf8c3ac38d128 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Sat, 7 Jul 2018 13:51:42 -0400 Subject: [PATCH] Added private again --- .gitignore | 2 +- roles/private/tasks/main.yml | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 roles/private/tasks/main.yml diff --git a/.gitignore b/.gitignore index b76c28d..bff8110 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ .stfolder main.retry -private +/private .env diff --git a/roles/private/tasks/main.yml b/roles/private/tasks/main.yml new file mode 100644 index 0000000..6ece4f0 --- /dev/null +++ b/roles/private/tasks/main.yml @@ -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'