From 53f6c94d328b32f4f373ea7e22ed5fa0e45304d8 Mon Sep 17 00:00:00 2001 From: Andrew Butcher Date: Thu, 4 Aug 2016 15:51:38 -0400 Subject: [openshift_ca] correct check for missing CA. --- roles/openshift_ca/tasks/main.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'roles') diff --git a/roles/openshift_ca/tasks/main.yml b/roles/openshift_ca/tasks/main.yml index 2e147840d..e1bf7dcad 100644 --- a/roles/openshift_ca/tasks/main.yml +++ b/roles/openshift_ca/tasks/main.yml @@ -38,7 +38,6 @@ master_ca_missing: "{{ False in (g_master_ca_stat_result.results | oo_collect(attribute='stat.exists') | list) }}" - delegate_to: "{{ openshift_ca_host }}" run_once: true - name: Create the master certificates if they do not already exist @@ -52,6 +51,6 @@ --public-master={{ openshift.master.public_api_url }} --cert-dir={{ openshift_ca_config_dir }} --overwrite=false - when: hostvars[openshift_ca_host].master_ca_missing | bool + when: master_ca_missing | bool delegate_to: "{{ openshift_ca_host }}" run_once: true -- cgit v1.2.3