Skip to content

Commit

Permalink
Merge pull request #190 from galaxyproject/mutable-take-2
Browse files Browse the repository at this point in the history
Second attempt at fixing, must be privsep to create
  • Loading branch information
natefoo committed Apr 13, 2023
2 parents 11b27a1 + 2a9bf37 commit 00c0fad
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions tasks/mutable_setup.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,28 @@
---
# Instantiate mutable config files

- name: Mutable config setup
- name: Mutable config directory setup
block:

- name: Ensure Galaxy version is set
include_tasks: _inc_galaxy_version.yml
when: __galaxy_major_version is undefined

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

remote_user: "{{ galaxy_remote_users.privsep | default(__galaxy_remote_user) }}"
become: "{{ true if galaxy_become_users.privsep is defined else __galaxy_become }}"
become_user: "{{ galaxy_become_users.privsep | default(__galaxy_become_user) }}"

- name: Mutable config setup
block:

- name: Ensure Galaxy version is set
include_tasks: _inc_galaxy_version.yml
when: __galaxy_major_version is undefined

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

0 comments on commit 00c0fad

Please sign in to comment.