diff --git a/tripleo_ansible/roles/tripleo_cephadm/tasks/dashboard/configure_dashboard_backends.yml b/tripleo_ansible/roles/tripleo_cephadm/tasks/dashboard/configure_dashboard_backends.yml index 3f607fb5b..bfa8d7e1e 100644 --- a/tripleo_ansible/roles/tripleo_cephadm/tasks/dashboard/configure_dashboard_backends.yml +++ b/tripleo_ansible/roles/tripleo_cephadm/tasks/dashboard/configure_dashboard_backends.yml @@ -21,17 +21,20 @@ become: true delegate_to: "{{ dashboard_backend }}" +- name: Check the resulting mgr container instance + set_fact: + current_mgr: "{{ ceph_mgr.stdout | regex_replace('^-n mgr.(.*)(?P) -f (.*)+$', '\\1') }}" + - name: Check the resulting mgr container instance debug: - msg: "{{ ceph_mgr.stdout | regex_replace('^-n mgr.(.*)(?P) -f (.*)+$', '\\1') }}" + msg: "{{ current_mgr }}" when: tripleo_cephadm_verbose | bool - name: config the current dashboard backend command: | {{ tripleo_cephadm_ceph_cli }} config set \ - mgr mgr/dashboard/{{ ceph_mgr.stdout | regex_replace('^-n mgr.(.*)(?P) -f (.*)+$', '\\1') }}/server_addr \ + mgr mgr/dashboard/{{ current_mgr }}/server_addr \ {{ hostvars[dashboard_backend][tripleo_ceph_dashboard_net] }} become: true - changed_when: false vars: tripleo_ceph_dashboard_net: "{{ service_net_map['ceph_grafana_network'] + '_ip' }}"