Add a few things; nfs_lazy_reboot2.yml/nfs_lazy_reboot3.yml are valid; v2 is best POC
This commit is contained in:
31
timeout_test2.yml
Normal file
31
timeout_test2.yml
Normal 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"
|
Reference in New Issue
Block a user