From 0d4f60a5e1125e308311ad675b4f60a385569a2e Mon Sep 17 00:00:00 2001 From: Bartek Grzybowski Date: Mon, 10 Jun 2019 13:39:47 +0200 Subject: Setup 'cluster_ip' fact for infra host in 'chrony' role tests This patch sets up a missing 'cluster_ip' fact for infrastructure host without which 'server' directive was set up improperly in chrony.conf on 'node' host. Change-Id: I3d98788b7eb54bf984d165a50072f51fd85c08fb Issue-ID: OOM-1810 Signed-off-by: Bartek Grzybowski --- ansible/roles/chrony/molecule/default/playbook.yml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ansible/roles') diff --git a/ansible/roles/chrony/molecule/default/playbook.yml b/ansible/roles/chrony/molecule/default/playbook.yml index 7dccfc35..717d0f39 100644 --- a/ansible/roles/chrony/molecule/default/playbook.yml +++ b/ansible/roles/chrony/molecule/default/playbook.yml @@ -1,6 +1,10 @@ --- - name: Converge infrastructure hosts hosts: infrastructure + tasks: + - name: Set cluster_ip fact + set_fact: + cluster_ip: "{{ ansible_default_ipv4.address }}" roles: - chrony -- cgit 1.2.3-korg