Bug #17150
closed
Ansible Plugin uses the foreman user as ssh user to execute playbooks
Added by Daniel Kuffner about 8 years ago.
Updated over 6 years ago.
Description
Ansible Plugin uses the 'foreman' user to open a ssh connection ( foreman@myhost ). I tried to configure the ssh user via global/host parameters in the foreman web ui - without luck.
I tried all to me know ansible variables:
- remote_user
- ansible_user
- ansible_ssh_user
How is it possible to configure the ssh user?
How is it possible to configure the ssh user in the ansible plugin?
Versions:
ansible 2.1.2.0
rpm -qa | grep foreman
foreman-release-scl-3-1.el7.noarch
foreman-1.13.1-1.el7.noarch
tfm-rubygem-foreman_setup-5.0.0-1.fm1_13.el7.noarch
tfm-rubygem-foreman-tasks-0.8.2-1.fm1_13.el7.noarch
foreman-release-1.13.1-1.el7.noarch
foreman-selinux-1.13.1-1.el7.noarch
foreman-installer-1.13.1-1.el7.noarch
foreman-debug-1.13.1-1.el7.noarch
foreman-postgresql-1.13.1-1.el7.noarch
foreman-proxy-1.13.1-1.el7.noarch
tfm-rubygem-hammer_cli_foreman-0.8.0-1.el7.noarch
tfm-rubygem-foreman_ansible_core-0.0.1-2.fm1_13.el7.noarch
tfm-rubygem-foreman_ansible-1.2.1-1.fm1_13.el7.noarch
foreman-cli-1.13.1-1.el7.noarch
tfm-rubygem-foreman-tasks-core-0.1.1-1.fm1_13.el7.noarch
Terrifyingly, I forgot to do this - no way to configure it as of now. I'll do my best to release a new version that allows that.
The smart proxy plugin doesn't allow setting the user either
- Status changed from New to Assigned
- Assignee set to Tomer Brisker
- Blocked by Feature #17527: As a developer, I want to have facets easily applicable to both hosts and host groups. added
- Blocked by deleted (Feature #17527: As a developer, I want to have facets easily applicable to both hosts and host groups.)
- Related to Feature #17527: As a developer, I want to have facets easily applicable to both hosts and host groups. added
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/foreman_ansible/pull/60 added
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
- Target version set to 1.4.3
Also available in: Atom
PDF