Updates for reboot_test3.yml
This commit is contained in:
3
.vscode/settings.json
vendored
Normal file
3
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"ansible.python.interpreterPath": "/usr/bin/python"
|
||||||
|
}
|
@ -17,11 +17,13 @@
|
|||||||
gather_facts: false
|
gather_facts: false
|
||||||
|
|
||||||
vars:
|
vars:
|
||||||
__nfs_share: /nfs/backups
|
__nfs_src: 10.10.42.155
|
||||||
|
__nfs_share: /exports/shared
|
||||||
|
__nfs_mnt_pnt: /nfs/cluster
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Lazily unmount the NFS share
|
- name: Lazily unmount the NFS share
|
||||||
ansible.builtin.command: "umount -f -l {{ __nfs_share }}"
|
ansible.builtin.command: "umount -f -l {{ __nfs_mnt_pnt }}"
|
||||||
|
|
||||||
- name: Reboot host if file changes # noqa: no-handler
|
- name: Reboot host if file changes # noqa: no-handler
|
||||||
ansible.builtin.import_role:
|
ansible.builtin.import_role:
|
||||||
@ -30,12 +32,8 @@
|
|||||||
- name: Unlazily re-mount the file system
|
- name: Unlazily re-mount the file system
|
||||||
ansible.posix.mount:
|
ansible.posix.mount:
|
||||||
state: mounted
|
state: mounted
|
||||||
src: 10.10.42.180:/backups
|
src: "{{ __nfs_src }}:{{ __nfs_share }}"
|
||||||
path: /nfs/backups
|
path: "{{ __nfs_mnt_pnt }}"
|
||||||
opts: rw,noatime
|
opts: rw,noatime
|
||||||
boot: false
|
boot: false
|
||||||
fstype: nfs
|
fstype: nfs
|
||||||
|
|
||||||
|
|
||||||
# write script to write files until reboot happens
|
|
||||||
# script should write number, sleep 1 second, write number, etc
|
|
||||||
|
Reference in New Issue
Block a user