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.
2 parents 7e54210 + ac0002f commit 9de1cb9Copy full SHA for 9de1cb9
roles/cephadm/tasks/osds.yml
@@ -11,3 +11,7 @@
11
delegate_to: "{{ omit if 'mons' in group_names else groups['mons'][0] }}"
12
when: cephadm_osd_devices | length > 0
13
with_items: "{{ cephadm_osd_devices }}"
14
+ vars:
15
+ # NOTE: Without this, the delegate hosts's ansible_host variable will not
16
+ # be respected.
17
+ ansible_host: "{{ hostvars[inventory_hostname].ansible_host if 'mons' in group_names else hostvars[groups['mons'][0]].ansible_host }}"
0 commit comments