Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
arieluchka opened this issue Jul 11, 2023 · 1 comment
Open

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

arieluchka opened this issue Jul 11, 2023 · 1 comment

Comments

@arieluchka
Copy link

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 :(

@jmal98
Copy link
Owner

jmal98 commented Jan 15, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants