On 08/31/2015 06:41 AM, [email protected] wrote:
> Thanks Brian - I didn't know that's possible (it is not documented in the 
> default config file)

You are right on that one, however the documentation does hint to constants.py 
in the repo so with that handy:

   ~/work/ansible/ansible-project $ fgrep -r "su_exe" .
   ./test/units/playbook/test_play_context.py:        su_exe      = 
C.DEFAULT_SU_EXE
   ./test/units/playbook/test_play_context.py:        self.assertEqual(cmd, 
"""%s -c '%s  %s -c "%s -c '"'"'echo %s; %s'"'"'"'""" % (default_exe, su_exe, 
play_context.become_user, default_exe, play_context.success_key, default_cmd))
   ./lib/ansible/constants.py:DEFAULT_SU_EXE            = get_config(p, 
DEFAULTS, 'su_exe', 'ANSIBLE_SU_EXE', 'su')
   ./lib/ansible/playbook/play_context.py:   su_exe           = 
('ansible_su_exe',),
   ./lib/ansible/playbook/play_context.py:    _su_exe           = 
FieldAttribute(isa='string')
   ./lib/ansible/playbook/play_context.py:                exe = self.become_exe 
or self.su_exe or 'su'

;)

-- 
Steve

-- 
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/55E452D0.3010900%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to