wow....guess i need some sleep. sorry for this. 

On Wednesday, September 19, 2018 at 1:02:24 PM UTC+2, Kai Stian Olstad 
wrote:
>
> On 19.09.2018 12:16, [email protected] <javascript:> wrote: 
> > how to i check the return code of a shell command correctly? see error 
> > below. looks like a chicken/egg situation to me...create_oml_users 
> > should 
> > be registerd if rc is 0...any ideas? 
> > 
> > 
> > - shell: lsuser -R files lsam 2>/dev/null 
> >   register: create_oml_users 
> >   when: create_oml_users.rc == 0 
> >   ignore_errors: true 
> > 
> > fatal: [AIXWUKIT]: FAILED! => {} 
>
> You must do that in the next task, not in the task itself. 
>
> -- 
> Kai Stian Olstad 
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/e9a0c12d-6554-4431-9153-d9eb998d838d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to