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.
inventory_hostname
ansible_host
1 parent 673b381 commit dc767bcCopy full SHA for dc767bc
roles/cephadm/tasks/osds.yml
@@ -3,7 +3,7 @@
3
# correctly when setting ansible_host in the next task.
4
- name: Set a fact about the Ansible host
5
set_fact:
6
- mon_ansible_host: "{{ hostvars[inventory_hostname].ansible_host }}"
+ mon_ansible_host: "{{ hostvars[inventory_hostname].ansible_host | default(inventory_hostname) }}"
7
8
- name: Add OSDs individually
9
command:
0 commit comments