How to set become pass for become_method: su?

73 views
Skip to first unread message

Joey Cheng

unread,
Jul 14, 2021, 1:46:19 PM7/14/21
to Ansible Project
Hello folks,

I was using --ask-become-pass and it worked fine. But now I'm going to run multiple playbooks at one time so I'm going to include become pass in plaintext for each group. I tried "ansible_become_pass" in inventory file:

[group1]
xxx.xx.xx.xxx ansible_user=ubuntu ansible_become_pass=xxx

But I got "Timeout (12s) waiting for privilege escalation prompt:" error. BTW, I'm using "become_method: su"

Any hints on how to achieve this? Thanks!

Joey
Reply all
Reply to author
Forward
0 new messages