nfs logic

This commit is contained in:
nazunalika 2020-12-23 02:56:55 -07:00
parent 3e5ffe4498
commit 4f24e6b4ac
3 changed files with 5 additions and 3 deletions

View File

@ -47,6 +47,7 @@ koji_kojira_principal: koji/kojira@ROCKYLINUX.ORG
koji_kojira_keytab: /etc/koji.keytab koji_kojira_keytab: /etc/koji.keytab
# Storage # Storage
koji_nfs: true
koji_mount: /mnt/koji koji_mount: /mnt/koji
koji_nfs_path: nfs.rockylinux.org:/export/koji koji_nfs_path: nfs.rockylinux.org:/export/koji

View File

@ -5,8 +5,8 @@
- name: Apply required SELinux booleans - name: Apply required SELinux booleans
import_tasks: selinux_boolean.yml import_tasks: selinux_boolean.yml
- name: Ensure NFS is mounted - name: Ensure Storage is ready
import_tasks: nfs.yml import_tasks: storage.yml
- name: Install required packages - name: Install required packages
yum: yum:

View File

@ -1,5 +1,5 @@
--- ---
# Storage
- name: Ensure the koji mountpoint exists - name: Ensure the koji mountpoint exists
file: file:
path: "{{ koji_mount }}" path: "{{ koji_mount }}"
@ -11,6 +11,7 @@
src: "{{ koji_nfs_path }}" src: "{{ koji_nfs_path }}"
fstype: nfs fstype: nfs
state: mounted state: mounted
when: koji_nfs
- name: Create required default directories - name: Create required default directories
file: file: