Skip to content

Commit

Permalink
Merge pull request #189 from mira-miracoli/fix-dir-creation
Browse files Browse the repository at this point in the history
Fix directory creation
  • Loading branch information
hexylena authored Apr 13, 2023
2 parents c79b955 + 4f24d63 commit 11b27a1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tasks/mutable_setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@
include_tasks: _inc_galaxy_version.yml
when: __galaxy_major_version is undefined

- name: Create directories for config files
ansible.builtin.file:
state: directory
path: "{{ item }}"
mode: "{{ __galaxy_dir_perms }}"
group: "{{ __galaxy_user_group }}"
loop: "{{ (galaxy_mutable_config_files + galaxy_mutable_config_templates) | map(attribute='dest') | map('dirname') | unique }}"

# force: no in the following 2 tasks will not overwrite existing configs
- name: Instantiate mutable configuration files
copy:
Expand Down

0 comments on commit 11b27a1

Please sign in to comment.