Hi, Sebastian

I did not say clearly. I checked my ansible.cfg and it has 'become = true' 
in it and ran failed.

On Wednesday, March 27, 2019 at 4:57:48 PM UTC-4, Sebastian Meyer wrote:

> On 27.03.19 21:29, R-JRI wrote: 
> > I don't need 'become' and 'become_user' at least since the UID is the 
> same. 
> > Tried to use 'become_method = sudo' and remove 'sudo' from 'command: 
> > /usr/local/bin/application_stop_start.sh stop' and it did not work. Does 
> > anyone have any suggestions? 
> > Thanks. 
>
> You still need `become: true`, since you want to _become_ root executing 
> this script. Just setting the become_method to sudo won't do anything. 
>
> Sebastian 
>
> > 
>
> -- 
> Sebastian Meyer 
> Linux Consultant & Trainer 
> Mail: [email protected] <javascript:> 
>
> B1 Systems GmbH 
> Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de 
> GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537 
>

-- 
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/734e263a-8ce2-4134-9996-193ad4c4de5a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to