primer commit

This commit is contained in:
Rénich Bon Ćirić 2025-08-06 05:45:11 -06:00
commit 864b3e4008
Signed by: renich
GPG key ID: BDA314B08CB17657
105 changed files with 3185 additions and 0 deletions

View file

@ -0,0 +1,27 @@
#SPDX-License-Identifier: MIT-0
---
- name: Install NFS client packages
ansible.builtin.dnf:
name: nfs-utils
state: present
- name: Create mount point directory
ansible.builtin.file:
path: "{{ koji_top_dir }}"
state: directory
mode: "0755"
- name: Add kojifs0 to /etc/hosts
ansible.builtin.lineinfile:
path: /etc/hosts
line: "{{ hostvars[groups['kojifs'][0]].ansible_default_ipv4.address }} {{ koji_nfs_host }}"
create: true
state: present
- name: Mount the Koji NFS share
ansible.posix.mount:
path: "{{ koji_top_dir }}"
src: "{{ koji_nfs_host }}:{{ koji_top_dir }}"
fstype: nfs
opts: "rw,sync"
state: mounted