]> git.apps.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)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 26 Nov 2018 17:22:20 +0000 (18:22 +0100)
`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>
infrastructure-playbooks/rolling_update.yml

index 31f64d6f100733d55985419c52216b26ab447c66..bfaceffdcdddeaf521754123a01393e29b00fc18 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 }}"