The playbook is practically unreadable. All leading spaces have been collapsed; do you expect people to read a YAML file without indentation?
Please edit your question and put code tags around the code. See my signature for instructions.
Having said that, your description is lacking. Which command did you issue to run this playbook, and what output did you get? Any failure messages? Is there a difference between the outputs of the successful and failing playbook runs?
Did you try adding --become to the ansible-playbook command?
As far as I know, you don't normally run playbooks as the root user. It seems to me that something is fundamentally wrong with your Ansible setup.
Last edited by berndbausch; 04-03-2019 at 07:30 PM.
Reason: grammar, typos, added information
|