Browse Source

Merge pull request #6554 from mgugino-upstream-stage/bootstrap-to-include-role

Remove bootstrap.yml from main.yml in openshift_node role
Michael Gugino 7 years ago
parent
commit
eb43e2b79e

+ 7 - 0
playbooks/openshift-node/private/image_prep.yml

@@ -12,6 +12,13 @@
 - name: run node config
   import_playbook: configure_nodes.yml
 
+- name: node bootstrap config
+  hosts: oo_nodes_to_config:!oo_containerized_master_nodes
+  tasks:
+    - include_role:
+        name: openshift_node
+        tasks_from: bootstrap.yml
+
 - name: Re-enable excluders
   import_playbook: enable_excluders.yml
 

+ 0 - 4
roles/openshift_node/tasks/main.yml

@@ -99,7 +99,3 @@
 
 - include_tasks: config/workaround-bz1331590-ovs-oom-fix.yml
   when: openshift_node_use_openshift_sdn | default(true) | bool
-
-- name: include bootstrap node config
-  include_tasks: bootstrap.yml
-  when: openshift_node_bootstrap