ansible-role-kojid/tasks/storage.yml

18 lines
358 B
YAML
Raw Normal View History

2021-01-03 19:35:33 +00:00
---
# Storage
- name: Ensure the koji mountpoint exists
2022-03-28 02:48:48 +00:00
ansible.builtin.file:
2021-01-03 19:35:33 +00:00
path: "{{ kojid_mount }}"
state: directory
owner: apache
group: apache
mode: '0755'
- name: Mount the NFS store
2022-03-28 02:48:48 +00:00
ansible.builtin.mount:
2021-01-03 19:35:33 +00:00
path: "{{ kojid_mount }}"
src: "{{ kojid_nfs_path }}"
fstype: nfs
state: mounted
2021-01-24 21:57:49 +00:00
when: kojid_nfs|bool