Error when installing a role - Ansible

0 votes

When i try installing an Ansible role, i get the following exception:

$ ansible-galaxy install zzet.postgresql
 Traceback (most recent call last):
 File "/Users/home/.homebrew/Cellar/ansible/1.4.3/libexec/bin/ansible-galaxy", line 34, in <module>
 import yaml
 ImportError: No module named yaml

OS: Mac Os Maverick
Ansible: 1.4.3

Jan 28, 2019 in Ansible by Kavya

1 answer to this question.

0 votes

The yaml python package is provided by the PyYAML pip package. This error means that the system tries to import the python module yaml but is unable to find it. 

Hopefully, this should be fixed by issuing

pip install pyyaml
answered Jan 28, 2019 by Fez

Related Questions In Ansible

0 votes
1 answer
0 votes
1 answer

Error saying "ImportError: No module named ansible.playbook" when installing ansible on aws

Hey @Niana, I don't think you have ...READ MORE

answered Feb 4, 2019 in Ansible by Anushri

edited Feb 6, 2019 3,055 views
0 votes
1 answer
0 votes
1 answer

Using multiple config files using same template in a role in ansible

Go through this include_role module: tasks: - ...READ MORE

answered Jun 5, 2018 in Ansible by DareDev
• 6,890 points
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
+2 votes
1 answer
0 votes
1 answer

CRC check failed error when pulling ansible role from git

You can try adding --no-wait option to the ansible-galaxy import call ...READ MORE

answered Mar 14, 2019 in Ansible by Kanika