We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72c61b0 commit ff22ac7Copy full SHA for ff22ac7
roles/commands/tasks/main.yml
@@ -7,6 +7,9 @@
7
become: true
8
changed_when: true
9
when: cephadm_commands | length > 0
10
-
11
delegate_to: "{{ groups['mons'][0] }}"
12
run_once: true
+ vars:
13
+ # NOTE: Without this, the delegate hosts's ansible_host variable will not
14
+ # be respected.
15
+ ansible_host: "{{ hostvars[groups['mons'][0]].ansible_host | default(inventory_hostname) }}"
0 commit comments