From: Guillaume Abrioux Date: Fri, 1 Oct 2021 12:41:23 +0000 (+0200) Subject: cephadm: add admin label on mon nodes X-Git-Tag: v6.0.16~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4b5a0c0443870cf55082f5d42667fcd54b6b75e8;p=ceph-ansible.git cephadm: add admin label on mon nodes This is needed if you want a copy of the admin keyring on the admin nodes. Signed-off-by: Guillaume Abrioux (cherry picked from commit b555f1d1cdbcf3e2bf902fe5a64d32adc61d0266) --- diff --git a/infrastructure-playbooks/cephadm.yml b/infrastructure-playbooks/cephadm.yml index b25d08abc..984cc0410 100644 --- a/infrastructure-playbooks/cephadm.yml +++ b/infrastructure-playbooks/cephadm.yml @@ -231,7 +231,7 @@ CEPHADM_IMAGE: '{{ ceph_docker_registry }}/{{ ceph_docker_image }}:{{ ceph_docker_image_tag }}' - name: manage nodes with cephadm - command: "{{ cephadm_cmd }} shell -- ceph --cluster {{ cluster }} orch host add {{ ansible_facts['hostname'] }} {{ ansible_facts['default_ipv4']['address'] }} {{ group_names | join(' ') }}" + command: "{{ cephadm_cmd }} shell -- ceph --cluster {{ cluster }} orch host add {{ ansible_facts['hostname'] }} {{ ansible_facts['default_ipv4']['address'] }} {{ group_names | join(' ') }} {{ '_admin' if mon_group_name | default('mons') in group_names else '' }}" changed_when: false delegate_to: '{{ groups[mon_group_name][0] }}' environment: