diff options
author | Russell Teague <rteague@redhat.com> | 2017-11-16 16:32:38 -0500 |
---|---|---|
committer | Russell Teague <rteague@redhat.com> | 2017-11-21 15:05:23 -0500 |
commit | d448704c0e67494387d80c2fa2348d25e848c8d3 (patch) | |
tree | f88c034a0da1c7bc7f9c42c1e07ea1a216bde22b /playbooks/openshift-node/private/setup.yml | |
parent | 8d12df4b390832664f0be2d9955440bdeb00bb29 (diff) | |
download | openshift-d448704c0e67494387d80c2fa2348d25e848c8d3.tar.gz openshift-d448704c0e67494387d80c2fa2348d25e848c8d3.tar.bz2 openshift-d448704c0e67494387d80c2fa2348d25e848c8d3.tar.xz openshift-d448704c0e67494387d80c2fa2348d25e848c8d3.zip |
Playbook Consolidation - openshift-node
Diffstat (limited to 'playbooks/openshift-node/private/setup.yml')
-rw-r--r-- | playbooks/openshift-node/private/setup.yml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/playbooks/openshift-node/private/setup.yml b/playbooks/openshift-node/private/setup.yml new file mode 100644 index 000000000..794c03a67 --- /dev/null +++ b/playbooks/openshift-node/private/setup.yml @@ -0,0 +1,27 @@ +--- +- name: Disable excluders + hosts: oo_nodes_to_config + gather_facts: no + roles: + - role: openshift_excluder + r_openshift_excluder_action: disable + r_openshift_excluder_service_type: "{{ openshift.common.service_type }}" + +- name: Evaluate node groups + hosts: localhost + become: no + connection: local + tasks: + - name: Evaluate oo_containerized_master_nodes + add_host: + name: "{{ item }}" + groups: oo_containerized_master_nodes + ansible_ssh_user: "{{ g_ssh_user | default(omit) }}" + ansible_become: "{{ g_sudo | default(omit) }}" + with_items: "{{ groups.oo_nodes_to_config | default([]) }}" + when: + - hostvars[item].openshift is defined + - hostvars[item].openshift.common is defined + - hostvars[item].openshift.common.is_containerized | bool + - (item in groups.oo_nodes_to_config and item in groups.oo_masters_to_config) + changed_when: False |