Initial project commit
This commit is contained in:
26
mount_test.yml
Normal file
26
mount_test.yml
Normal file
@ -0,0 +1,26 @@
|
||||
---
|
||||
- name: Delay test
|
||||
hosts: mount
|
||||
become: false
|
||||
gather_facts: false
|
||||
|
||||
vars:
|
||||
nfs_srv: 10.10.42.180
|
||||
nfs_mnt: /backups
|
||||
nfs_path: /var/tmp/nfs_mnt
|
||||
|
||||
tasks:
|
||||
- name: Mount NFS share
|
||||
ansible.posix.mount:
|
||||
path: "{{ nfs_path }}"
|
||||
src: "{{ nfs_srv }}:{{ nfs_mnt }}"
|
||||
fstype: nfs
|
||||
state: ephemeral
|
||||
|
||||
- name: Pause
|
||||
ansible.builtin.pause:
|
||||
minutes: 1
|
||||
|
||||
- name: Import the ReaR unmount role
|
||||
ansible.builtin.import_role:
|
||||
name: rear_unmount
|
Reference in New Issue
Block a user