Parcourir la source

Add node_group_checks to openshift_node_group.yml

Validate openshift_node_groups and openshift_node_group_name
Russell Teague il y a 6 ans
Parent
commit
539b929aaa
1 fichiers modifiés avec 6 ajouts et 0 suppressions
  1. 6 0
      playbooks/openshift-master/private/openshift_node_group.yml

+ 6 - 0
playbooks/openshift-master/private/openshift_node_group.yml

@@ -2,7 +2,13 @@
 - name: Configure node configmap on the master
 - name: Configure node configmap on the master
   hosts: oo_first_master
   hosts: oo_first_master
   gather_facts: no
   gather_facts: no
+  roles:
+  - role: openshift_facts
+  - role: lib_utils
   tasks:
   tasks:
+  # node_group_checks is a custom action plugin defined in lib_utils.
+  - name: Validate openshift_node_groups and openshift_node_group_name
+    node_group_checks: {}
   - name: include openshift node config
   - name: include openshift node config
     import_role:
     import_role:
       name: openshift_node_group
       name: openshift_node_group