ansible version : 2.1.1.0
-
hosts: hhh
gather_facts: no
become: yes
tasks: -
block:
-
name: hhh conf
shell: bash /tmp/hhh.sh
async: 2000
poll: 0
register: update_hhh -
name: check hhh
async_status: jid={{ update_hhh.ansible_job_id }}
register: update_result
until: update_result.finished
retries: 200
delay: 10