Setup 'cluster_ip' fact for infra host in 'chrony' role tests 38/89638/1
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>
Mon, 10 Jun 2019 11:39:47 +0000 (13:39 +0200)
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>
Mon, 10 Jun 2019 11:45:48 +0000 (13:45 +0200)
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>
ansible/roles/chrony/molecule/default/playbook.yml

index 7dccfc3..717d0f3 100644 (file)
@@ -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