Actions
Bug #23731
closedSetting to disable host key verification
Difficulty:
Triaged:
Bugzilla link:
Description
When you run Ansible against a host that is not yet in the foreman-proxy '.ssh/known_hosts', Ansible prompts you to verify the key (actually, ssh does).
Since Foreman REX does not have an interactive mode where I could say yes or no, I think a sensible approach would be the following:
- Read '~foreman-proxy/.known_hosts' before running Ansible.
- Add a playbook in foreman_ansible seeds that basically runs 'ssh-keyscan' and adds the public SSH of a host to known_hosts.
- If the host is not found in .known_hosts (first Ansible run through the proxy), we prefix that to the regular playbook.
- If it's found, we just run the playbook as always and would detect MITM.
Updated by Daniel Lobato Garcia over 6 years ago
- Status changed from New to Assigned
- Pull request https://github.com/theforeman/smart_proxy_ansible/pull/8 added
Updated by The Foreman Bot over 6 years ago
- Status changed from Assigned to Ready For Testing
- Assignee set to Daniel Lobato Garcia
- Pull request https://github.com/theforeman/foreman_ansible/pull/176 added
Updated by Marek Hulán over 6 years ago
- Translation missing: en.field_release set to 361
Updated by Anonymous over 6 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset foreman_ansible|e258437698c7cc5115f5c7b3673bea4cb84273e6.
Actions