diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..4b48193 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "ansible.python.interpreterPath": "/usr/bin/python" +} diff --git a/reboot_test3.yml b/reboot_test3.yml index 302c8a6..b940295 100644 --- a/reboot_test3.yml +++ b/reboot_test3.yml @@ -17,11 +17,13 @@ gather_facts: false vars: - __nfs_share: /nfs/backups + __nfs_src: 10.10.42.155 + __nfs_share: /exports/shared + __nfs_mnt_pnt: /nfs/cluster tasks: - 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 ansible.builtin.import_role: @@ -30,12 +32,8 @@ - name: Unlazily re-mount the file system ansible.posix.mount: state: mounted - src: 10.10.42.180:/backups - path: /nfs/backups + src: "{{ __nfs_src }}:{{ __nfs_share }}" + path: "{{ __nfs_mnt_pnt }}" opts: rw,noatime boot: false fstype: nfs - - -# write script to write files until reboot happens -# script should write number, sleep 1 second, write number, etc