Skip to content

Commit

Permalink
create additionnal directories
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Wälti committed Aug 16, 2018
1 parent c2331b0 commit df3d5ed
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
4 changes: 3 additions & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,4 +155,6 @@ deploy_service_systemd_location: "/etc/systemd/system/{{ deploy_app_name | lower
# Additionaly template files to deploy. See readme for usage instructions
deploy_additional_templates: []

deploy_additional_copy: []
deploy_additional_copy: []

create_additional_dir: []
13 changes: 12 additions & 1 deletion tasks/additional.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,15 @@
owner: "{{ item.user | default(deploy_app_user) }}"
group: "{{ item.group | default(deploy_app_group) }}"
mode: "{{ item.mode | default('0644') }}"
with_items: "{{ deploy_additional_copy }}"
with_items: "{{ deploy_additional_copy }}"

- name: "Additional - Create directories"
become: yes
become_user: "{{ deploy_app_user }}"
file:
path: "{{ item.path }}"
state: directory
owner: "{{ item.user | default(deploy_app_user) }}"
group: "{{ item.group | default(deploy_app_group) }}"
mode: "{{ item.mode | default('0644') }}"
with_items: "{{ create_additional_dir }}"

0 comments on commit df3d5ed

Please sign in to comment.