ensure extrafiles parent dir exists
This commit is contained in:
parent
7100ec707d
commit
ee7ec88cda
1 changed files with 10 additions and 0 deletions
|
|
@ -57,6 +57,16 @@
|
||||||
ansible.builtin.include_tasks: updateappdef.yml
|
ansible.builtin.include_tasks: updateappdef.yml
|
||||||
when: ppm_app.chicken_egg_appdefinition is defined
|
when: ppm_app.chicken_egg_appdefinition is defined
|
||||||
|
|
||||||
|
- name: "Ensure parent directories for extra files exist ({{ ppm_app.user }})"
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ ppm_app_user.home }}/{{ item.to | dirname }}"
|
||||||
|
state: directory
|
||||||
|
owner: "{{ ppm_app_user.name }}"
|
||||||
|
group: "{{ ppm_app_user.group }}"
|
||||||
|
mode: "0755"
|
||||||
|
loop: "{{ ppm_app.extra_files | default([]) }}"
|
||||||
|
when: (item.to | dirname) not in ['', '.']
|
||||||
|
|
||||||
- name: "Set up extra files for {{ ppm_app.user }}"
|
- name: "Set up extra files for {{ ppm_app.user }}"
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: "{{ item.from }}"
|
src: "{{ item.from }}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue