summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>2019-06-10 13:39:47 +0200
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>2019-06-10 13:45:48 +0200
commit0d4f60a5e1125e308311ad675b4f60a385569a2e (patch)
tree60f612746ac6ec4eecc599296291c0ac98c832a3
parent3cd75cd8d71f471a0217f525bb8e4ed5315266a8 (diff)
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 <b.grzybowski@partner.samsung.com>
-rw-r--r--ansible/roles/chrony/molecule/default/playbook.yml4
1 files changed, 4 insertions, 0 deletions
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