1234567891011121314151617181920212223 |
- ---
- - name: Create temp directory for doing work in
- command: mktemp -d /tmp/openshift-glusterfs-ansible-XXXXXX
- register: mktemp
- changed_when: False
- check_mode: no
- - include: glusterfs_config.yml
- when:
- - groups.glusterfs | default([]) | count > 0
- - include: glusterfs_registry.yml
- when: >
- groups.glusterfs_registry | default([]) | count > 0
- or (openshift_hosted_registry_storage_kind | default(none) == 'glusterfs')
- or (openshift_hosted_registry_storage_glusterfs_swap | default(False))
- - name: Delete temp directory
- file:
- name: "{{ mktemp.stdout }}"
- state: absent
- changed_when: False
- check_mode: no
|