Add a few things; nfs_lazy_reboot2.yml/nfs_lazy_reboot3.yml are valid; v2 is best POC

This commit is contained in:
2025-07-30 16:49:16 -04:00
parent 6bcacd8a97
commit 35476c9b25
11 changed files with 405 additions and 26 deletions

31
timeout_test2.yml Normal file
View File

@ -0,0 +1,31 @@
---
- name: Demonstrate module timeout
hosts: temp
gather_facts: false
tasks:
- name: Check mounts
ansible.builtin.command: umount -f -l /nfs/backups
register: r_check_mounts
async: 300
poll: 0
- name: Debug r_check_mounts
ansible.builtin.debug:
var: r_check_mounts
# - name: Check polling
# ansible.builtin.async_status:
# jid: "{{ r_check_mounts['ansible_job_id'] }}"
# register: async_check
# until: async_check['finished']
# retries: 10
# delay: 3
# - name: Debug async_check
# ansible.builtin.debug:
# var: async_check
# - name: Hi
# ansible.builtin.debug:
# msg: "hi"