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 ? 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 Keycloak facts"
> >>   set_fact:
> >>     che_keycloak:
> >> "{{ lookup('k8s',
> >> api_version='route.openshift.io/v1',kind='Route',resource_name='keycloak',namespace='che')
>
> >> }}"
> >>   register: che_keycloak_route_result
> >>   until: che_keycloak.spec is defined
> >>   retries: 30
> >>   delay: 10
> >>   when: state == 'present'
> >>
>
> With set_fact and until it will not set the variable on each iteration
> unfortunately.

That is what I observe :(

>
> I don't know of any workaround.

any other better way you think of doing my task?

>
>
> --
> Kai Stian Olstad
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Ansible Project" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/ansible-project/fK2u9_IK48o/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/fb9049c270601c5510b3ec2264ba7a32%40olstad.com
> .
>
-- 
Kamesh

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAD3XHScBM8HLb2NK1JwmN3Ai0w7AbR77xHJDTaiAONxbizfFKQ%40mail.gmail.com.

Reply via email to