From 704b49ba334b675c79f0a2b2c0699d19c2290629 Mon Sep 17 00:00:00 2001 From: tynorth-cisco Date: Mon, 19 Dec 2016 12:32:18 -0800 Subject: [PATCH] use monitor name, not host ansible host in ceph.conf in ceph-common there is a fact check for monitor name that will set it to ansible_host or ansible_fqdn --- roles/ceph-mon/tasks/start_monitor.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/ceph-mon/tasks/start_monitor.yml b/roles/ceph-mon/tasks/start_monitor.yml index 17b02490a..2ad23185f 100644 --- a/roles/ceph-mon/tasks/start_monitor.yml +++ b/roles/ceph-mon/tasks/start_monitor.yml @@ -25,9 +25,9 @@ - name: add mon section into ceph.conf for systemv init scripts ini_file: dest: /etc/ceph/{{ cluster }}.conf - section: mon.{{ ansible_host }} + section: mon.{{ monitor_name }} option: host - value: "{{ ansible_host }}" + value: "{{ monitor_name }}" state: present when: - ansible_os_family != "Ubuntu" -- 2.39.5