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: me...@b1-systems.de

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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/8a47dd0b-ffb3-f60d-bbc7-a7285761e41e%40b1-systems.de.
For more options, visit https://groups.google.com/d/optout.

Reply via email to