Skip to content

Commit f842409

Browse files
committed
linter error
1 parent e2d2a93 commit f842409

File tree

4 files changed

+10
-15
lines changed

4 files changed

+10
-15
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
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

ansible/adhoc/rebuild-via-slurm.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@
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

ansible/safe-env.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
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)

ansible/site.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,8 @@
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:

0 commit comments

Comments
 (0)