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

------

cat /tmp/hhh.sh
sleep 1200 

-----

ansible-playbook -i ~/tmp/hhh.hosts  hhh.yml   
bind service  done


-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/dd9a7647-8c53-4e80-990d-1a028e7e42de%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to