ansible-role-kojihub/tasks/storage.yml
2020-12-23 12:46:25 -07:00

27 lines
531 B
YAML

---
# Storage
- name: Ensure the koji mountpoint exists
file:
path: "{{ koji_mount }}"
state: directory
owner: apache
group: apache
mode: '0755'
- name: Mount the NFS store
mount:
path: "{{ koji_mount }}"
src: "{{ koji_nfs_path }}"
fstype: nfs
state: mounted
when: koji_nfs
- name: Create required default directories
file:
path: "{{ koji_mount }}/{{ item }}"
state: directory
owner: apache
group: apache
mode: '0755'
with_items: "{{ koji_default_directories }}"