0

I'm learning ansible and I'm having a problem, when I run my playbook, it only runs the gather_fact task and does not play my roles. On the other hand when I run just a module with the ansible command -m or playing the playbook locally, there my roles are played. Do you have an idea ? I posted the question on the google group, but for the moment no answers. thank you in advance

1 Answer 1

1

If instead of using the command line:
ansible-playbook -u root --private -key ~ / .ssh / id_rsa centos7.yml -i xxx.xxx.xxx.xxx,

I use:

ansible-playbook -u root centos7.yml -i xxx.xxx.xxx.xxx,

It works.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.