blob: fef945d516bd906572ecbad755de2ebf8605bf33 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
---
- 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"
dest: "{{ mktempHosted.stdout }}/glusterfs-registry-endpoints.yml"
- name: Generate GlusterFS registry service
template:
src: "{{ openshift.common.examples_content_version }}/glusterfs-registry-service.yml.j2"
dest: "{{ mktempHosted.stdout }}/glusterfs-registry-service.yml"
- name: Create GlusterFS registry service and endpoint
command: "{{ openshift_client_binary }} apply -f {{ item }} -n {{ openshift_hosted_registry_namespace | default('default') }}"
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
|