**Problem:play ansible role using foreman web interface
**Expected outcome:The role should be applied to the selected host
**Foreman and Proxy versions:1.15.6
Plugin version: tfm-rubygem-foreman_ansible_core-1.1.1-1.fm1_15.el7.noarch
tfm-rubygem-foreman_ansible-1.4.5-1.fm1_15.el7.noarch
ansible-2.7.7-1.el7.noarch
rubygem-smart_proxy_ansible-1.1.1-1.fm1_15.el7.noarch
I have created new role called unix2dos using this command
‘ansible-galaxy init /etc/ansible/roles/unix2dos --offline’
Then I have edited ‘/etc/ansible/roles/unix2dos/tasks/main.yml’ file with the following contents:
- name: test
yum: name=unix2dos state=latest
when I apply that role to a specific host using foreman web interface, I am getting that error:
UNREACHABLE! => {“changed”: false, “msg”: “Invalid/incorrect password: Permission denied, please try again.”, “unreachable”: true} to retry, use: --limit @/tmp/foreman-playbook-41ac65c2-24a6-48b6-8a3e-36e683954395.retry
I have copied the SSH public key of foreman-proxy and root of Foreman server to the trusted-hosts file of the root use of the managed host but still the problem is exist.
Please, how to solve this issue?
Best regards
Mostafa