Skip to content

Commit

Permalink
Maybe this works better
Browse files Browse the repository at this point in the history
  • Loading branch information
hexylena committed Apr 14, 2023
1 parent 11b27a1 commit 0e5bc4a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ galaxy_app_config_section: "{{ 'galaxy' if galaxy_config_style in ('yaml', 'yml'

# Galaxy configuration files will be written with these permissions (mode argument to Ansible copy/template module)
galaxy_config_perms: 0640
galaxy_config_perms_public: 0644

# The default Galaxy configuration, ensures that Galaxy can find all of the configs if galaxy_config_dir !=
# galaxy_server_dir
Expand Down Expand Up @@ -313,6 +314,8 @@ galaxy_errordocs_prefix: /error
# templates to be installed on the managed host.
galaxy_config_files: []
galaxy_config_templates: []
# Like above, except with world readable permissions
galaxy_config_files_public: []

# Default Gravity configuration
galaxy_gravity_state_dir: "{{ (galaxy_mutable_data_dir, 'gravity') | path_join }}"
Expand Down
11 changes: 11 additions & 0 deletions tasks/static_setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,17 @@
notify:
- restart galaxy

- name: Install additional Galaxy config files (static, public)
copy:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
backup: "{{ galaxy_backup_configfiles }}"
mode: "{{ galaxy_config_perms_public }}"
group: "{{ __galaxy_user_group }}"
with_items: "{{ galaxy_config_files_public }}"
notify:
- restart galaxy

- name: Install additional Galaxy config files (template)
template:
src: "{{ item.src }}"
Expand Down

0 comments on commit 0e5bc4a

Please sign in to comment.