We are planning to use AWX in our environment. At the moment we have individual users running playbooks. We cannot have a shared user. We also have bastion servers to get into our environments. We need to use the same username from the machine credential to log in to the bastion. I tried using ansible_user variable in “ansible_ssh_common_args” but it is undefined. Is there a way to achieve this
i can recomend you use a vault.yml file that contains the credentials so you only need to have 1 credential shared with your team.
The vault file you should have in something like an internal repo with some ssh keys to fetch them.
you can define an ssh machine credential with a static username/password and attach this to your Job. This credential will be used for all users who launch the job
Seth
1 Like