blob: 541913aefce768615725a04b46cfbe033c2de362 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
---
- name: Disable excluders
hosts: oo_nodes_to_config
gather_facts: no
roles:
- role: openshift_excluder
r_openshift_excluder_action: disable
- 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
|