diff options
author | Andrew Butcher <abutcher@redhat.com> | 2017-05-01 14:25:14 -0400 |
---|---|---|
committer | Andrew Butcher <abutcher@redhat.com> | 2017-05-02 11:22:10 -0400 |
commit | 828ccd86df772bc5dbf5617dd257740338e81e30 (patch) | |
tree | b41d6c07090d40b2ad78f049635592309fa71750 /roles/openshift_master_certificates | |
parent | fb16c946f7ec37c615e976faadf726151b75d386 (diff) | |
download | openshift-828ccd86df772bc5dbf5617dd257740338e81e30.tar.gz openshift-828ccd86df772bc5dbf5617dd257740338e81e30.tar.bz2 openshift-828ccd86df772bc5dbf5617dd257740338e81e30.tar.xz openshift-828ccd86df772bc5dbf5617dd257740338e81e30.zip |
Remove set operations from openshift_master_certificates iteration.
Diffstat (limited to 'roles/openshift_master_certificates')
-rw-r--r-- | roles/openshift_master_certificates/tasks/main.yml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/roles/openshift_master_certificates/tasks/main.yml b/roles/openshift_master_certificates/tasks/main.yml index d4c9a96ca..33a0af07f 100644 --- a/roles/openshift_master_certificates/tasks/main.yml +++ b/roles/openshift_master_certificates/tasks/main.yml @@ -64,10 +64,10 @@ --signer-key={{ openshift_ca_key }} --signer-serial={{ openshift_ca_serial }} --overwrite=false + when: inventory_hostname != openshift_ca_host with_items: "{{ hostvars | oo_select_keys(groups['oo_masters_to_config']) - | oo_collect(attribute='inventory_hostname', filters={'master_certs_missing':True}) - | difference([openshift_ca_host])}}" + | oo_collect(attribute='inventory_hostname', filters={'master_certs_missing':True}) }}" delegate_to: "{{ openshift_ca_host }}" run_once: true @@ -94,8 +94,8 @@ creates: "{{ openshift_generated_configs_dir }}/master-{{ hostvars[item].openshift.common.hostname }}/openshift-master.kubeconfig" with_items: "{{ hostvars | oo_select_keys(groups['oo_masters_to_config']) - | oo_collect(attribute='inventory_hostname', filters={'master_certs_missing':True}) - | difference([openshift_ca_host])}}" + | oo_collect(attribute='inventory_hostname', filters={'master_certs_missing':True}) }}" + when: inventory_hostname != openshift_ca_host delegate_to: "{{ openshift_ca_host }}" run_once: true |