File tree Expand file tree Collapse file tree 6 files changed +9
-5
lines changed Expand file tree Collapse file tree 6 files changed +9
-5
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ cephadm_hostname : " {{ ansible_facts.nodename }}"
Original file line number Diff line number Diff line change 4
4
name : stackhpc.cephadm.commands
5
5
vars :
6
6
cephadm_commands :
7
- - " orch host ok-to-stop {{ ansible_facts.nodename }}"
7
+ - " orch host ok-to-stop {{ cephadm_hostname }}"
8
8
9
9
# Annoyingly, 'ceph orch host ok-to-stop' does not exit non-zero when
10
10
# it is not OK to stop, so we need to check for specific messages.
30
30
name : stackhpc.cephadm.commands
31
31
vars :
32
32
cephadm_commands :
33
- - " orch host maintenance enter {{ ansible_facts.nodename }}"
33
+ - " orch host maintenance enter {{ cephadm_hostname }}"
Original file line number Diff line number Diff line change 17
17
# Entering maintenance fails if the host is already in maintenance.
18
18
- name : Enter maintenance
19
19
ansible.builtin.include_tasks : enter.yml
20
- when : ansible_facts.nodename not in cephadm_hosts_in_maintenance
20
+ when : cephadm_hostname not in cephadm_hosts_in_maintenance
21
21
vars :
22
22
cephadm_hosts_in_maintenance : >-
23
23
{{ cephadm_commands_result.results[0].stdout |
Original file line number Diff line number Diff line change
1
+ ---
2
+ cephadm_hostname : " {{ ansible_facts.nodename }}"
Original file line number Diff line number Diff line change 4
4
name : stackhpc.cephadm.commands
5
5
vars :
6
6
cephadm_commands :
7
- - " orch host maintenance exit {{ ansible_facts.nodename }}"
7
+ - " orch host maintenance exit {{ cephadm_hostname }}"
Original file line number Diff line number Diff line change 21
21
cephadm_host_status : >-
22
22
{{ cephadm_commands_result.results[0].stdout |
23
23
from_json |
24
- selectattr('hostname', 'equalto', ansible_facts.nodename ) |
24
+ selectattr('hostname', 'equalto', cephadm_hostname ) |
25
25
first }}
You can’t perform that action at this time.
0 commit comments