Initial Commit
This commit is contained in:
20
roles/nfs/tasks/main.yml
Normal file
20
roles/nfs/tasks/main.yml
Normal file
@ -0,0 +1,20 @@
|
||||
---
|
||||
|
||||
- name: Install NFS mount utility
|
||||
ansible.builtin.apt:
|
||||
update_cache: true
|
||||
pkg: nfs-common
|
||||
state: present
|
||||
when: ansible_os_family == "Debian"
|
||||
|
||||
- name: Mount an NFS volume
|
||||
ansible.posix.mount:
|
||||
src: "{{ item.src }}"
|
||||
path: "{{ item.path }}"
|
||||
opts: "{{ item.opts | default(nfs_mount_opts) }}"
|
||||
state: "{{ item.state | default( 'mounted' ) }}"
|
||||
fstype: nfs
|
||||
with_items: "{{ mounts }}"
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user