Re: [ansible-project] using set_fact with until

2019-09-11 Thread Kamesh Sampath
Thank you Vladmir and flowerysong, this solution works just as its needed. On Thursday, September 12, 2019 at 7:55:53 AM UTC+5:30, Vladimir Botka wrote: > > On Wed, 11 Sep 2019 14:50:24 -0700 (PDT) > flowerysong > wrote: > > > That seems overly complex. I would instead wait until the required

Re: [ansible-project] using set_fact with until

2019-09-11 Thread Kamesh Sampath
On Wed, 11 Sep 2019 at 17:59, Kai Stian Olstad < ansible-project+l...@olstad.com> wrote: > On 11.09.2019 09:22, Kamesh Sampath wrote: > > I am trying to use `set_fact` with `until` and `retries`, will the fact > > be > > evaluated and set during each iteration ? S

Re: [ansible-project] using set_fact with until

2019-09-11 Thread Kamesh Sampath
On Wednesday, September 11, 2019 at 3:20:40 PM UTC+5:30, Vladimir Botka wrote: > > On Wed, 11 Sep 2019 15:04:44 +0530 > Kamesh Sampath > wrote: > > > > > > that "set_fact" declares the variable "che_keycloak". The > condition > >

Re: [ansible-project] using set_fact with until

2019-09-11 Thread Kamesh Sampath
On Wed, 11 Sep 2019 at 14:36, Vladimir Botka wrote: > On Wed, 11 Sep 2019 01:44:50 -0700 (PDT) > Kamesh Sampath wrote: > > > > Yes. The the fact will be evaluated and set on each iteration. The > problem > > > is > > > that "set_fact" de

Re: [ansible-project] using set_fact with until

2019-09-11 Thread Kamesh Sampath
On Wednesday, September 11, 2019 at 2:10:04 PM UTC+5:30, Vladimir Botka wrote: > > On Wed, 11 Sep 2019 00:22:50 -0700 (PDT) > Kamesh Sampath > wrote: > > > I am trying to use `set_fact` with `until` and `retries`, will the fact > be > > evaluated and set durin

[ansible-project] using set_fact with until

2019-09-11 Thread Kamesh Sampath
I am trying to use `set_fact` with `until` and `retries`, will the fact be evaluated and set during each iteration ? Sometimes I see the value is not being set and I get the failure after the retries. While I see the corresponding lookup returns value using another cli. - name: "Get Che Keycloa

[ansible-project] Docker and Ansible: running specific tasks on a dynamically defined host list

2015-09-15 Thread Kamesh Sampath
Hello, I am running docker swarm with Ansible, my playbook deploys a docker image on specific node using swarm, post that deployment I want to execute certain Ansible tasks on the host where the image is deployed (still running from the same playbook role), as I am using consul as my backend I