This commit is contained in:
@@ -0,0 +1,20 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
- name: Setup and mount NFS share
|
||||||
|
hosts: all
|
||||||
|
become: true
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- name: Ensure NFS client packages are installed
|
||||||
|
ansible.builtin.package:
|
||||||
|
name: "{{ 'nfs-common' if ansible_facts['os_family'] == 'Debian' else 'nfs-utils' }}"
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: Ensure NFS share is mounted and persistent in fstab
|
||||||
|
ansible.posix.mount:
|
||||||
|
path: /nfs
|
||||||
|
src: nfs-v4.int.metaunix.net:/export/nfs
|
||||||
|
fstype: nfs
|
||||||
|
opts: rw,vers=4,_netdev,sync,hard,intr,rsize=8192,wsize=8192
|
||||||
|
state: mounted
|
||||||
@@ -6,6 +6,8 @@
|
|||||||
import_playbook: base.yml
|
import_playbook: base.yml
|
||||||
- name: Authentication
|
- name: Authentication
|
||||||
import_playbook: auth.yml
|
import_playbook: auth.yml
|
||||||
|
- name: NFS Client
|
||||||
|
import_playbook: nfs_client.yml
|
||||||
- name: Packages
|
- name: Packages
|
||||||
import_playbook: packages.yml
|
import_playbook: packages.yml
|
||||||
- name: Munin
|
- name: Munin
|
||||||
|
|||||||
Reference in New Issue
Block a user