diff --git a/defaults/main.yml b/defaults/main.yml index 60112e8..9d37ac3 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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 @@ -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 }}" diff --git a/tasks/static_setup.yml b/tasks/static_setup.yml index 56016f6..f83e5c4 100644 --- a/tasks/static_setup.yml +++ b/tasks/static_setup.yml @@ -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 }}"