|
@@ -1,4 +1,10 @@
|
|
|
---
|
|
|
+- name: Create temp directory for doing work in
|
|
|
+ command: mktemp -d /tmp/openshift-hosted-ansible-XXXXXX
|
|
|
+ register: mktempHosted
|
|
|
+ changed_when: False
|
|
|
+ check_mode: no
|
|
|
+
|
|
|
- name: Generate GlusterFS registry endpoints
|
|
|
template:
|
|
|
src: "{{ openshift.common.examples_content_version }}/glusterfs-registry-endpoints.yml.j2"
|
|
@@ -14,3 +20,10 @@
|
|
|
with_items:
|
|
|
- "{{ mktempHosted.stdout }}/glusterfs-registry-service.yml"
|
|
|
- "{{ mktempHosted.stdout }}/glusterfs-registry-endpoints.yml"
|
|
|
+
|
|
|
+- name: Delete temp directory
|
|
|
+ file:
|
|
|
+ name: "{{ mktempHosted.stdout }}"
|
|
|
+ state: absent
|
|
|
+ changed_when: False
|
|
|
+ check_mode: no
|