From 02478965aa7b15f5d8e696b221f3d0dbd3eb81a4 Mon Sep 17 00:00:00 2001 From: Jason DeTiberus Date: Sun, 1 Mar 2015 00:22:28 -0500 Subject: Set local_facts for openshift_node and openshift_master later in the task list --- roles/openshift_master/tasks/main.yml | 14 +++++++------- roles/openshift_node/tasks/main.yml | 12 +++++++----- 2 files changed, 14 insertions(+), 12 deletions(-) (limited to 'roles') diff --git a/roles/openshift_master/tasks/main.yml b/roles/openshift_master/tasks/main.yml index 45f776859..07483c0d6 100644 --- a/roles/openshift_master/tasks/main.yml +++ b/roles/openshift_master/tasks/main.yml @@ -2,13 +2,6 @@ - name: Install OpenShift Master package yum: pkg=openshift-master state=installed -- name: Set master OpenShift facts - include: "{{ role_path | dirname }}/openshift_common/tasks/set_facts.yml" - facts: - - { section: master, option: debug_level, value: "{{ openshift_master_debug_level }}" } - - { section: master, option: public_ip, value: "{{ openshift_public_ip }}" } - - { section: master, option: externally_managed, value: "{{ openshift_master_manage_service_externally }}" } - - name: Configure firewall for OpenShift Master include: "{{ role_path | dirname }}/openshift_common/tasks/firewall.yml" allow: @@ -28,6 +21,13 @@ notify: - restart openshift-master +- name: Set master OpenShift facts + include: "{{ role_path | dirname }}/openshift_common/tasks/set_facts.yml" + facts: + - { section: master, option: debug_level, value: "{{ openshift_master_debug_level }}" } + - { section: master, option: public_ip, value: "{{ openshift_public_ip }}" } + - { section: master, option: externally_managed, value: "{{ openshift_master_manage_service_externally }}" } + - name: Start and enable openshift-master service: name=openshift-master enabled=yes state=started when: not openshift_master_manage_service_externally diff --git a/roles/openshift_node/tasks/main.yml b/roles/openshift_node/tasks/main.yml index 72dc23dea..9015cae80 100644 --- a/roles/openshift_node/tasks/main.yml +++ b/roles/openshift_node/tasks/main.yml @@ -2,11 +2,6 @@ - name: Install OpenShift Node package yum: pkg=openshift-node state=installed -- name: Set OpenShift node facts - include: "{{ role_path | dirname }}/openshift_common/tasks/set_facts.yml" - facts: - - { section: node, option: debug_level, value: "{{ openshift_node_debug_level }}" } - - local_action: command /usr/bin/mktemp -d /tmp/openshift-ansible-XXXXXXX register: mktemp @@ -35,6 +30,13 @@ notify: - restart openshift-node +- name: Set OpenShift node facts + include: "{{ role_path | dirname }}/openshift_common/tasks/set_facts.yml" + facts: + - { section: node, option: debug_level, value: "{{ openshift_node_debug_level }}" } + - { section: node, option: public_ip, value: "{{ openshift_public_ip }}" } + - { section: node, option: externally_managed, value: "{{ openshift_node_manage_service_externally }}" } + # fixme: Once the openshift_cluster playbook is published state should be started # Always bounce service to pick up new credentials - name: Start and enable openshift-node -- cgit v1.2.3