Support Questions
Find answers, ask questions, and share your expertise

Metron Ansible failure due to missing ambari_common role when using Vagrant

New Contributor

I have all the pre-reqs (Ansible, VBox, Vagrant, etc.) on Mac OSX. When Vagrant tries to provision the box it fails with the following error:

ERROR! the role 'ambari_common' was not found in /Users/silvio/Downloads/incubator-metron-Metron_0.1BETA_rc7/deployment/playbooks/roles:/Users/silvio/Downloads/incubator-metron-Metron_0.1BETA_rc7/deployment/playbooks:/etc/ansible/roles

The error appears to have been in '/Users/silvio/Downloads/incubator-metron-Metron_0.1BETA_rc7/deployment/playbooks/ambari_install.yml': line 28, column 7, but may be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

    - role: ambari_common
      ^ here

Ansible failed to complete successfully. Any error output should be visible above. Please fix these errors and try again.

Rising Star

Hi Silvio,

It looks as if your roles_path didn't get set up. That is in ansible.cfg in the singlenode-vagrant folder. Could you verify that the file exists and contains a line "roles_path = ../../roles"