Docker has command line programs, but they are not well suited to automation. Return values and pars-able output are both lacking, but there is an API that you can use instead. The Dockerd api can listen on a local socket or even a remote accessible port, but in these examples I'll show local socket only.
You can reboot and reconnect to your hosts between Ansible tasks.
--- # Other task above here. # Now reboot and reconnect - block: # The at module allows ansible to issue the command and disconnect # cleanly before the reboot disconnects the network connection. - name: Reboot in one minute at: command=reboot count=1 units=minutes # You may need to adjust this dependong on how fast your host halts. - name: Wait for reboot to start and hopefully finish pause: minutes=2 - name: Try to re-connect to rebooted host before continuing command: /bin/true register: online retries: 20 delay: 30 until: online|success # Continue your tasks...
Update 5 Jan 2017
Here's another option using the wait_for module.
- name: reboot at: command=reboot count=1 units=minutes - name: wait for sshd on vms to resume wait_for: host: maple.example.com port: 22 delay: 90 # Continue your tasks...
Cloud Foundry is an open source platform as a service product owned by Pivotal Software. CF allows you to deploy applications to containers on AWS, Azue, VMware vSphere, and others.
Review your markdown locally with Grip, powered by Python.
CFEngine has switched to a JIRA bug system and this system allows us to vote for bugs. I encourage you to vote for your favourite bugs; here are mine: