Thanks Sebastian.
I added warning option as you suggested and the warning message went away
and applications can be stopped/started.
On Thursday, March 28, 2019 at 10:21:23 AM UTC-4, Sebastian Meyer wrote:
> Hi,
>
> On 28.03.19 14:49, R-JRI wrote:
> > TASK [Gathering Facts]
> >
> **********************************************************************************************************************************************************************************************************************
>
>
> > fatal: [host1]: FAILED! => {"changed": false, "module_stderr": "Shared
> > connection to host1 closed.\r\n", "module_stdout": "Sorry, user
> appsadmin
> > is not allowed to execute '/bin/sh -c echo
> > BECOME-SUCCESS-fxdiujleiigrbgciqkixarzuxhsbngrr; /usr/bin/python
> >
> /u/appadmin/.ansible/tmp/ansible-tmp-1553780641.69-82349845573466/AnsiballZ_setup.py'
>
>
> > as root on host1.\r\n", "msg": "MODULE FAILURE\nSee stdout/stderr for
> the
> > exact error", "rc": 1}
>
> If the user you use with ansible is only allowed to execute this script
> with sudo and not use sudo for ALL, then you are right to use
>
> command: sudo /usr/local/bin/application_stop_start.sh stop
>
> You may want to add
>
> warn: no
>
> See:
>
> https://docs.ansible.com/ansible/latest/modules/command_module.html?highlight=warn
>
>
> 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/e9670e4a-e9e2-46c4-a1c8-a85a0e549501%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.