Hello
I need to override only two configuration parameters (- sudo_flags, ssh_args).
Can I do it without updating the global ansible.cfg, and without copy the full file locally?
Thanks
Tzach
Hello
I need to override only two configuration parameters (- sudo_flags, ssh_args).
Can I do it without updating the global ansible.cfg, and without copy the full file locally?
Thanks
Tzach
Answering myself:
One option is to use env vars as follow:
export DEFAULT_SU_FLAGS=“-HE”
export ANSIBLE_SSH_ARGS=“-o ForwardAgent=yes”
The variables are listed at lib/ansible/constants.py