ansible-role-kojihub/tasks/storage.yml

23 lines
461 B
YAML
Raw Normal View History

2020-12-23 03:52:59 +00:00
---
2020-12-23 09:56:55 +00:00
# Storage
2020-12-23 03:52:59 +00:00
- name: Ensure the koji mountpoint exists
file:
path: "{{ koji_mount }}"
state: directory
- name: Mount the NFS store
mount:
path: "{{ koji_mount }}"
src: "{{ koji_nfs_path }}"
fstype: nfs
state: mounted
2020-12-23 09:56:55 +00:00
when: koji_nfs
2020-12-23 03:52:59 +00:00
- name: Create required default directories
file:
path: "{{ koji_mount }}/{{ item }}"
state: directory
owner: apache
group: apache
with_items: "{{ koji_default_directories }}"