Skip to content

Commit

Permalink
Merge pull request #14 from acme-software/create_addititonal_directories
Browse files Browse the repository at this point in the history
create additionnal directories
  • Loading branch information
frne authored Aug 16, 2018
2 parents 155f730 + df3d5ed commit 2da3df0
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 2da3df0

Please sign in to comment.