Add a few things; nfs_lazy_reboot2.yml/nfs_lazy_reboot3.yml are valid; v2 is best POC
This commit is contained in:
22
timeout_test1.yml
Normal file
22
timeout_test1.yml
Normal file
@ -0,0 +1,22 @@
|
||||
---
|
||||
- name: Demonstrate module timeout
|
||||
hosts: localhost
|
||||
connection: local
|
||||
gather_facts: false
|
||||
|
||||
tasks:
|
||||
- name: Check if network share is hung and reboot
|
||||
block:
|
||||
- name: Check mounts
|
||||
ansible.builtin.command: sleep 30
|
||||
timeout: 10
|
||||
|
||||
rescue:
|
||||
- name: Lazily unmount the file system
|
||||
ansible.builtin.debug:
|
||||
msg: unmount stuff goes here
|
||||
|
||||
always:
|
||||
- name: Reboot the host
|
||||
ansible.builtin.debug:
|
||||
msg: include_role verified_reboot
|
Reference in New Issue
Block a user