[ansible-project] Re: Example for running a playbook using Python API

2014-11-03 Thread Jazzed
import ansible.runner import ansible.playbook from ansible import callbacks from ansible import utils stats = callbacks.AggregateStats() playbook_cb = callbacks.PlaybookCallbacks(verbose=utils.VERBOSITY) runner_cb = callbacks.PlaybookRunnerCallbacks(stats, verbose=utils.VERBOSITY) pb = ansible.

[ansible-project] Re: Example for running a playbook using Python API

2014-11-03 Thread Jazzed
import ansible.runner import ansible.playbook from ansible import callbacks from ansible import utils stats = callbacks.AggregateStats() playbook_cb = callbacks.PlaybookCallbacks(verbose=utils.VERBOSITY) runner_cb = callbacks.PlaybookRunnerCallbacks(stats, verbose=utils.VERBOSITY) pb = ansible.

Re: [ansible-project] docker module is not upgrading my container

2014-09-29 Thread Jazzed
docker applications can be upgraded by looking at the ansible output. On Monday, September 29, 2014 3:22:28 PM UTC-7, tkuratomi wrote: > > On Mon, Sep 29, 2014 at 1:53 PM, Jazzed > wrote: > >>> > >> Assuming that: > >> 1) The kill old container t

Re: [ansible-project] docker module is not upgrading my container

2014-09-29 Thread Jazzed
> > >> Assuming that: > 1) The kill old container task isn't supposed to be present in the second > example > 2) The snazzy/cyweb container is running a long running process > 3) Manually running docker's tools does something similar > > I think this behaviour is intended. > > This seems like we'