From cedff2094920f429a5279ad1a7fdc01e64097b8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Mass=C3=A9?= Date: Tue, 26 Jun 2018 17:21:08 +0200 Subject: [PATCH] fix #7: check if the wildcard dns domain is working --- prepare.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/prepare.yml b/prepare.yml index 622dc21..2384065 100644 --- a/prepare.yml +++ b/prepare.yml @@ -191,6 +191,22 @@ state: latest tags: rpm + - name: Make sure the wildcard dns domain is defined in the inventory + assert: + that: + - openshift_master_default_subdomain is defined + msg: > + Please define the "openshift_master_default_subdomain" variable in your + inventory file! + tags: dns + + - name: Check if the wildcard dns domain is working + command: 'host {{ sample_record }}' + vars: + sample_record: 'test-{{ ansible_date_time.epoch }}.{{ openshift_master_default_subdomain }}' + changed_when: false + tags: dns + - name: First, disable any repos (using subscription-manager) command: subscription-manager repos --disable="*" tags: rpm