Repository metrics
- Stars
- (13,071 stars)
- PR merge metrics
- (Avg merge 24d 6h) (30 merged PRs in 30d)
Description
ISSUE TYPE
- Bug Report
SUMMARY
I have an interesting behaviour in AWX: I started implementing playbooks and stuff from existing configuration in AWX and ran those playbooks using a credential and therefore a distinct user which worked fine. I then wanted to use another user so I created a new credential containing a different user name and ssh key, along with the passphrase and become password. When I try to launch a job from a template using this credential it fails. Enabling connection debug output shows that Ansible is still using the former user which fails to connect via SSH.
I can not find any hints to that user in any configuration, neither in the inventories, nor in the playbooks or roles. Even on the filesystem level of the docker host I can not find anything helpful.
My current workaround is to set the ansible_user variable in the job template. This works but can not be the solution.
ENVIRONMENT
- AWX version: 9.0.1.0
- AWX install method: docker on linux
- Ansible version: 2.9.2 (Python 2.7.16)
- Operating System: Debian 10.2
- Web Browser: Firefox 70.0.1 (64-bit)
STEPS TO REPRODUCE
See summary.
EXPECTED RESULTS
The user set through the credential should be used, as no other configuration tells otherwise.
ACTUAL RESULTS
A formerly used user gets used.