]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
update: fix a typo
authorGuillaume Abrioux <gabrioux@redhat.com>
Mon, 26 Nov 2018 13:10:19 +0000 (14:10 +0100)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Thu, 29 Nov 2018 01:49:05 +0000 (01:49 +0000)
`hostvars[groups[mon_host]]['ansible_hostname']` seems to be a typo.
That should be `hostvars[mon_host]['ansible_hostname']`

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 7c99b6df6d8f0daa05ed8da987984d638af3a794)

infrastructure-playbooks/rolling_update.yml

index 4b2b58550106a011a57cd7f289a49748aca86e2f..ceeb71e2d6974e54fdb60517fc805af36b6a831a 100644 (file)
         caps:
           mon: "allow profile {{ item.0 }}"
         cluster: "{{ cluster }}"
-        containerized: "{{ 'docker exec ceph-mon-' + hostvars[groups[mon_host]]['ansible_hostname'] if containerized_deployment else None }}"
+        containerized: "{{ 'docker exec ceph-mon-' + hostvars[mon_host]['ansible_hostname'] if containerized_deployment else None }}"
       when:
         - cephx
       delegate_to: "{{ mon_host }}"