]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Revert "cephadm: use public_network when adding hosts"
authorGuillaume Abrioux <gabrioux@redhat.com>
Fri, 3 Dec 2021 09:21:53 +0000 (10:21 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Fri, 3 Dec 2021 09:21:53 +0000 (10:21 +0100)
This reverts commit 0097cb09f107a5925391f6e62f702025d5637fd9.
This should be included as of RHCS 5.1.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
infrastructure-playbooks/cephadm-adopt.yml

index fb6a2499eab9486c1ce9b53fde2bb33b7f60b0eb..0ed247911946cb7d5b4529756e9cb85c68ee361a 100644 (file)
       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] }}'