32 lines
709 B
YAML
32 lines
709 B
YAML
---
|
|
- 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"
|