ansible async module result in bind service is done

3 views
Skip to first unread message

hao huang

unread,
Nov 28, 2016, 7:05:56 PM11/28/16
to Ansible Project
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


Reply all
Reply to author
Forward
0 new messages