diff options
author | Andrew Butcher <abutcher@redhat.com> | 2017-07-27 13:41:32 -0400 |
---|---|---|
committer | Andrew Butcher <abutcher@redhat.com> | 2017-07-27 14:25:44 -0400 |
commit | 6bf9371c6cb52b2727dd52bc38f2b8b3a01d67d8 (patch) | |
tree | 138d628dd890b6f9deeeab64ed6afdf46241ee61 /playbooks/common/openshift-node | |
parent | cf80c7e13e898c11bd02b829fbc5183a13aff817 (diff) | |
download | openshift-6bf9371c6cb52b2727dd52bc38f2b8b3a01d67d8.tar.gz openshift-6bf9371c6cb52b2727dd52bc38f2b8b3a01d67d8.tar.bz2 openshift-6bf9371c6cb52b2727dd52bc38f2b8b3a01d67d8.tar.xz openshift-6bf9371c6cb52b2727dd52bc38f2b8b3a01d67d8.zip |
Move node facts to new openshift_node_facts role.
Diffstat (limited to 'playbooks/common/openshift-node')
-rw-r--r-- | playbooks/common/openshift-node/config.yml | 27 |
1 files changed, 5 insertions, 22 deletions
diff --git a/playbooks/common/openshift-node/config.yml b/playbooks/common/openshift-node/config.yml index 501ba4273..ef7d54f9f 100644 --- a/playbooks/common/openshift-node/config.yml +++ b/playbooks/common/openshift-node/config.yml @@ -1,25 +1,4 @@ --- -- name: Gather and set facts for node hosts - hosts: oo_nodes_to_config - vars: - t_oo_option_node_debug_level: "{{ lookup('oo_option', 'openshift_node_debug_level') }}" - pre_tasks: - - set_fact: - openshift_node_debug_level: "{{ t_oo_option_node_debug_level }}" - when: openshift_node_debug_level is not defined and t_oo_option_node_debug_level != "" - roles: - - openshift_facts - tasks: - # Since the master is generating the node certificates before they are - # configured, we need to make sure to set the node properties beforehand if - # we do not want the defaults - - openshift_facts: - role: node - local_facts: - labels: "{{ openshift_node_labels | default(None) }}" - annotations: "{{ openshift_node_annotations | default(None) }}" - schedulable: "{{ openshift_schedulable | default(openshift_scheduleable) | default(None) }}" - - name: Evaluate node groups hosts: localhost become: no @@ -32,7 +11,11 @@ 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 and hostvars[item].openshift.common is defined and hostvars[item].openshift.common.is_containerized | bool and (item in groups.oo_nodes_to_config and item in groups.oo_masters_to_config) + 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 - name: Configure containerized nodes |