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 in Ansible by Kavya
107 views

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 by Fez

Related Questions In Ansible

0 votes
1 answer
0 votes
1 answer
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,810 points
446 views
+13 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
121 views
0 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 in Ansible by Kanika
56 views