From: Guillaume Abrioux Date: Fri, 3 Dec 2021 09:21:53 +0000 (+0100) Subject: Revert "cephadm: use public_network when adding hosts" X-Git-Tag: v6.0.20.0~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6f6b91c5246142b058fdb77fe5fb6ee42f78e95a;p=ceph-ansible.git Revert "cephadm: use public_network when adding hosts" This reverts commit 0097cb09f107a5925391f6e62f702025d5637fd9. This should be included as of RHCS 5.1. Signed-off-by: Guillaume Abrioux --- diff --git a/infrastructure-playbooks/cephadm-adopt.yml b/infrastructure-playbooks/cephadm-adopt.yml index fb6a2499e..0ed247911 100644 --- a/infrastructure-playbooks/cephadm-adopt.yml +++ b/infrastructure-playbooks/cephadm-adopt.yml @@ -303,7 +303,7 @@ when: is_hci | bool - name: manage nodes with cephadm - command: "{{ ceph_cmd }} orch host add {{ ansible_facts['nodename'] }} {{ ansible_facts['all_ipv4_addresses'] | ips_in_ranges(public_network.split(',')) }} {{ group_names | join(' ') }}" + command: "{{ ceph_cmd }} orch host add {{ ansible_facts['nodename'] }} {{ ansible_facts['default_ipv4']['address'] }} {{ group_names | join(' ') }}" changed_when: false delegate_to: '{{ groups[mon_group_name][0] }}'