ansiblecm icon indicating copy to clipboard operation
ansiblecm copied to clipboard

ansible host ignoring ansible.cfg source at /tmp/playbook

Open arieluchka opened this issue 1 year ago • 1 comments

hi, when i run the command you provided: docker run -it --rm --entrypoint ansible -v $PWD/demo/playbook:/tmp/playbook:Z jmal98/ansiblecm:7.4.0 web -m yum -a 'name=java-1.8.0-openjdk-headless state=present' -i inventory/hosts -u centos -k -b i get a message "[WARNING]: Ansible is being run in a world writable directory (/tmp/playbook), ignoring it as an ansible.cfg source. For more information see https://docs.ansible.com/ansible/devel/reference_appendices/config.html#cfg-in-world-writable-dir"

where right after that: "web1 | FAILED! => { "msg": "Using a SSH password instead of a key is not possible because Host Key checking is enabled and sshpass does not support this. Please add this host's fingerprint to your known_hosts file to manage this host." } web2 | FAILED! => { "msg": "Using a SSH password instead of a key is not possible because Host Key checking is enabled and sshpass does not support this. Please add this host's fingerprint to your known_hosts file to manage this host." } web3 | FAILED! => { "msg": "Using a SSH password instead of a key is not possible because Host Key checking is enabled and sshpass does not support this. Please add this host's fingerprint to your known_hosts file to manage this host.""

im new to ansible and didnt find a way to let it accept the ansible.cfg in the repository :(

arieluchka avatar Jul 11 '23 12:07 arieluchka

hi,

It appears that your copy of the demo directory, specifically demo/playbook/ansible.cfg is different than what is in this project's repo. That is causing the issue you are experiencing.

jmal98 avatar Jan 15 '24 20:01 jmal98