Re: [ansible-project] HowTo run tasks only after a snapshot was successfully taken?

2017-11-13 Thread Kai Stian Olstad
On Sunday, 12 November 2017 20.31.36 CET Jörg Kastning wrote: > Am 12.11.2017 um 15:23 schrieb Kai Stian Olstad: > > > > Then you could use "register: status_snapshot" on this task, and check it's > > status in the next play. > > Ok, I'll try that. Since one of the common return values of

Re: [ansible-project] HowTo run tasks only after a snapshot was successfully taken?

2017-11-12 Thread Jörg Kastning
Am 12.11.2017 um 15:23 schrieb Kai Stian Olstad: >> Here is a not working example playbook: >> --- >> - hosts: localhost >> connection: local > > Instead of using hosts: localhost, you could use the inventory hostname or > the group. > Since you have connection: local it will run on the

Re: [ansible-project] HowTo run tasks only after a snapshot was successfully taken?

2017-11-12 Thread Kai Stian Olstad
On torsdag 9. november 2017 10.50.54 CET Jörg Kastning wrote: > let me explain my scenario first, before I come to my question. > > We run most of our linux servers as virtual machines in VMware vSphere > Clusters. I would like to use a playbook that takes a snapshot from a vm > befor it runs

[ansible-project] HowTo run tasks only after a snapshot was successfully taken?

2017-11-09 Thread Jörg Kastning
Hi @all, let me explain my scenario first, before I come to my question. We run most of our linux servers as virtual machines in VMware vSphere Clusters. I would like to use a playbook that takes a snapshot from a vm befor it runs further tasks on the target node. In case of a broken system