Can´t execute tasks as sudo

535 views
Skip to first unread message

André Trindade

unread,
Aug 23, 2019, 12:17:49 PM8/23/19
to AWX Project
Good afternoon.


I am trying to execute tasks with sudo but i am getting troubles, i don´t have root access. 


I enabled privilege escalation in the jobs and set the sudo password and user name but nothing, does not work.

PS: The user has sudo privileges.

Anyone can help me?

Thank you.




Micah Joiner

unread,
Aug 23, 2019, 12:19:53 PM8/23/19
to André Trindade, AWX Project
become needs to be set to true not yes

become: true

--
You received this message because you are subscribed to the Google Groups "AWX Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to awx-project...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/awx-project/d744310c-1a7f-4d14-8e29-f63d77be2efc%40googlegroups.com.


--
~Micah L Joiner

 

‎"Whether or not you can ever become great at something, you can always become better at it."

-Neil deGrasse Tyson

André Trindade

unread,
Aug 23, 2019, 12:30:36 PM8/23/19
to AWX Project
Hi Micah

Thank you for helping me, but that is not the problem, look like the "yes" and "true" are equal, as fact in ansible documentation they use yes instead true.

Thank you

sexta-feira, 23 de Agosto de 2019 às 17:19:53 UTC+1, Micah escreveu:
become needs to be set to true not yes

become: true

On Fri, Aug 23, 2019 at 6:17 PM André Trindade <andre.tr...@gmail.com> wrote:
Good afternoon.


I am trying to execute tasks with sudo but i am getting troubles, i don´t have root access. 


I enabled privilege escalation in the jobs and set the sudo password and user name but nothing, does not work.

PS: The user has sudo privileges.

Anyone can help me?

Thank you.




--
You received this message because you are subscribed to the Google Groups "AWX Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to awx-p...@googlegroups.com.

André Trindade

unread,
Aug 26, 2019, 6:27:44 AM8/26/19
to AWX Project
Can anyone execute tasks as sudo on AWX?

André Trindade

unread,
Aug 26, 2019, 7:58:50 AM8/26/19
to AWX Project
SSH LOGS: osboxes sudo: pam_unix(sudo:session): session opened for user root by


The session was opened as root but the task was not executed as sudo.

André Trindade

unread,
Aug 27, 2019, 11:30:32 AM8/27/19
to AWX Project

Good afternoon.

For reference the issue is that i was trying to escalate for my user. I removed my username from "Privilege Escalation Username" and now it´s working. Thanks.
Reply all
Reply to author
Forward
0 new messages