[defaults]
stdout_callback = json
roles_path = ~/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/var/www/miq/vmdb/content/ansible_consolidated/roles

[defaults]
stdout_callback = json
roles_path = /root/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/var/www/miq/vmdb/content/ansible_consolidated/roles

Use absolute path instead of ~
Use absolute path instead of ~
