File tree Expand file tree Collapse file tree 4 files changed +10
-15
lines changed Expand file tree Collapse file tree 4 files changed +10
-15
lines changed Original file line number Diff line number Diff line change 11---
22
3- - hosts : cluster
3+ - hosts : " {{ target_hosts | default(' cluster') }} "
44 gather_facts : false
55 become : false
66 tasks :
77 - name : Lock/Unlock instances
88 openstack.cloud.server_action :
99 action : " {{ appliances_server_action | default('lock') }}"
1010 server : " {{ inventory_hostname }}"
11- delegate_to : localhost
11+ delegate_to : localhost
Original file line number Diff line number Diff line change 88
99# See docs/slurm-controlled-rebuild.md.
1010
11- - hosts : localhost
12- gather_facts : false
13- tasks :
14- - name : Unlock compute nodes to ready rebuild
15- ansible.builtin.command :
16- cmd : ansible-playbook --limit compute adhoc/lock_unlock_instances.yml -e "appliances_server_action=unlock"
11+ - name : Unlock compute instances for rebuild
12+ vars :
13+ appliances_server_action : unlock
14+ target_hosts : compute
15+ ansible.builtin.import_playbook : adhoc/lock_unlock_instances.yml
1716
1817- hosts : login
1918 run_once : true
Original file line number Diff line number Diff line change 1616 when :
1717 - appliances_environment_name in appliances_protected_environments
1818 - not (appliances_protected_environment_autoapprove | default(false) | bool)
19- failed_when : not (env_confirm_safe.user_input | bool)
19+ failed_when : not (env_confirm_safe.user_input | bool)
Original file line number Diff line number Diff line change 22
33- ansible.builtin.import_playbook : safe-env.yml
44
5- - hosts : localhost
6- gather_facts : false
7- tasks :
8- - name : Lock all cluster instances
9- ansible.builtin.command :
10- cmd : ansible-playbook adhoc/lock_unlock_instances.yml
5+ - name : Lock cluster instances
6+ ansible.builtin.import_playbook : adhoc/lock_unlock_instances.yml
117
128- name : Run pre.yml hook
139 vars :
You can’t perform that action at this time.
0 commit comments