-
Notifications
You must be signed in to change notification settings - Fork 18
/
staging_update_configs_playbook.yml
34 lines (34 loc) · 1.32 KB
/
staging_update_configs_playbook.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
- hosts: staging_galaxy_server
become: true
vars_files:
- group_vars/all.yml
- group_vars/staging.yml
- group_vars/VAULT
- group_vars/galaxyservers.yml
- group_vars/staging_slurm.yml
- host_vars/staging.gvl.org.au.yml
- secret_group_vars/ubuntu_maintenance_key
handlers:
- include: handlers/galaxy_handlers.yml
pre_tasks:
- name: copy job_conf file
template:
src: "{{ galaxy_config_template_src_dir }}/config/staging_job_conf.yml.j2"
dest: "{{ galaxy_config_dir }}/job_conf.yml"
notify: restart handlers
- name: Install dynamic job rules (static) # dynamic job rules tasks copied from https://github.com/galaxyproject/ansible-galaxy/blob/main/tasks/static_setup.yml
copy:
src: "{{ galaxy_dynamic_job_rules_src_dir }}/{{ item }}"
dest: "{{ galaxy_dynamic_job_rules_dir }}/{{ item }}"
mode: 0644
with_items: "{{ galaxy_dynamic_job_rules }}"
when: not item.endswith(".j2")
- name: Install dynamic job rules (template)
template:
src: "{{ galaxy_dynamic_job_rules_src_dir }}/{{ item }}"
dest: "{{ galaxy_dynamic_job_rules_dir }}/{{ item | regex_replace(regex) }}"
mode: 0644
vars:
regex: '\.j2$'
with_items: "{{ galaxy_dynamic_job_rules }}"
when: item.endswith(".j2")