ansible-role-kojihub/tasks/storage.yml

27 lines
571 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
2022-03-28 02:54:44 +00:00
ansible.builtin.file:
2020-12-23 03:52:59 +00:00
path: "{{ koji_mount }}"
state: directory
2021-01-24 05:21:14 +00:00
owner: '48'
group: '48'
2020-12-23 19:46:25 +00:00
mode: '0755'
2020-12-23 03:52:59 +00:00
- name: Mount the NFS store
2022-03-28 02:54:44 +00:00
ansible.builtin.mount:
2020-12-23 03:52:59 +00:00
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
2022-03-28 02:54:44 +00:00
ansible.builtin.file:
2020-12-23 03:52:59 +00:00
path: "{{ koji_mount }}/{{ item }}"
state: directory
2021-01-24 05:21:14 +00:00
owner: '48'
group: '48'
2020-12-23 19:46:25 +00:00
mode: '0755'
2020-12-23 03:52:59 +00:00
with_items: "{{ koji_default_directories }}"