| |
@@ -0,0 +1,20 @@
|
| |
+ - name: Create the directories to hold the templates
|
| |
+ file:
|
| |
+ path: "/root/ocp4/openshift-apps/"
|
| |
+ state: directory
|
| |
+ owner: root
|
| |
+ group: root
|
| |
+ mode: 0770
|
| |
+ recurse: yes
|
| |
+
|
| |
+ # generate the templates for project to be created
|
| |
+ - name: apply the template
|
| |
+ template:
|
| |
+ src: "{{ item }}"
|
| |
+ dest: "/root/ocp4/openshift-apps/{{ item }}"
|
| |
+ with_items: "{{ project_templates }}"
|
| |
+
|
| |
+ # apply created openshift resources
|
| |
+ - name: oc apply resources
|
| |
+ command: "/root/bin/oc apply -f /root/ocp4/openshift-apps/{{ item }}"
|
| |
+ with_items: "{{ project_templates }}"
|
| |
Creating the namespace for
fedora-coreos