primer commit
This commit is contained in:
commit
864b3e4008
105 changed files with 3185 additions and 0 deletions
27
roles/nfs-client/tasks/main.yaml
Normal file
27
roles/nfs-client/tasks/main.yaml
Normal 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
|
||||
Loading…
Reference in a new issue