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
63 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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

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,520 points
176 views
+13 votes
2 answers
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
38 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.