summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Butcher <abutcher@redhat.com>2016-08-04 15:51:38 -0400
committerAndrew Butcher <abutcher@redhat.com>2016-08-04 15:51:38 -0400
commit53f6c94d328b32f4f373ea7e22ed5fa0e45304d8 (patch)
tree446cff6620d56bd40c0c7147f95702e3863b4962
parent7beb8e3454bc710110166179d10a2119b8b091ec (diff)
downloadopenshift-53f6c94d328b32f4f373ea7e22ed5fa0e45304d8.tar.gz
openshift-53f6c94d328b32f4f373ea7e22ed5fa0e45304d8.tar.bz2
openshift-53f6c94d328b32f4f373ea7e22ed5fa0e45304d8.tar.xz
openshift-53f6c94d328b32f4f373ea7e22ed5fa0e45304d8.zip
[openshift_ca] correct check for missing CA.
-rw-r--r--roles/openshift_ca/tasks/main.yml3
1 files changed, 1 insertions, 2 deletions
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