summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2018-01-10 20:08:51 -0500
committerScott Dodson <sdodson@redhat.com>2018-01-16 08:50:26 -0500
commitfd001349c6d35b204265a737832bc5b4227f6cb4 (patch)
treeba332a653a7d4ea873f8909c3298c6c29ffc19f8
parent3041060af052648c772a34e4e9cf25f0ce14bf77 (diff)
downloadopenshift-fd001349c6d35b204265a737832bc5b4227f6cb4.tar.gz
openshift-fd001349c6d35b204265a737832bc5b4227f6cb4.tar.bz2
openshift-fd001349c6d35b204265a737832bc5b4227f6cb4.tar.xz
openshift-fd001349c6d35b204265a737832bc5b4227f6cb4.zip
Add missing task that got dropped in a refactor
Removed in 28b254886bf17251e973bfdad4dd4c89e26187fc
-rw-r--r--roles/openshift_hosted/tasks/storage/glusterfs_endpoints.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/roles/openshift_hosted/tasks/storage/glusterfs_endpoints.yml b/roles/openshift_hosted/tasks/storage/glusterfs_endpoints.yml
index 77f020357..fef945d51 100644
--- a/roles/openshift_hosted/tasks/storage/glusterfs_endpoints.yml
+++ b/roles/openshift_hosted/tasks/storage/glusterfs_endpoints.yml
@@ -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