This works for me:
in ansible.cfg
[defaults]
ask_pass = True
su_exe = /opt/CA/AccessControl/bin/sesu
su_flags = -
executable = /bin/bash
[privilege_escalation]
become = True
become_ask_pass = True
become_user = root
become_method = su
In su_prompts.py add new prompt:
SU_PROMPT_LOCALIZATIONS = [
'Please enter your password',
...
If you don't have sesu password, then perhaps you don't need to add prompt
and also set become_ask_pass = False
Hope it helps
Edgars
pirmdiena, 2014. gada 8. septembris 14:53:46 UTC+2, Edgars rakstīja:
>
> Hi
>
> I see that Ansible has sudo_exe feature for alternative sudo
> implementations. Would it be possible to implement also su_exe for
> alternative su implementations? In particular I am interested in CA
> AccessControl sesu utility:
> https://support.ca.com/cadocs/0/CA%20Access%20Control%2012%205%205-ENU/Bookshelf_Files/HTML/1358981.html
>
> Thanks
> Edgars
>
--
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/c80d543f-b757-4a58-aad1-72e9cae0c2e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.