not mon_containerized_deployment and
groups[restapi_group_name] is defined
+- debug: msg="host {{ inventory_hostname }} last {{ groups.mons|last }}"
+
- name: create ceph rest api keyring when mon is containerized
command: docker exec {{ ansible_hostname }} ceph auth get-or-create client.restapi osd 'allow *' mon 'allow *' -o /etc/ceph/ceph.client.restapi.keyring
args:
when:
cephx and
mon_containerized_deployment and
- groups[restapi_group_name] is defined
+ groups[restapi_group_name] is defined and
+ inventory_hostname == groups.mons|last
+
- include: openstack_config.yml
when: openstack_config
when: inventory_hostname == groups.mons[0]
- include: fetch_configs.yml
- include: start_docker_monitor.yml
-- include: ../ceph_keys.yml
+- include: ../ceph_keys.yml
\ No newline at end of file