Error installing Ansible Collection from Requirements file

803 Views Asked by At

I'm trying to install the cyberark.pas collection using a requirements file in my project. Today I install the collection from AWX via ansible Galaxy, but the job fails a couple of times a day with the following error:

"stderr": "ERROR! Unexpected Exception, this is probably a bug: The read operation timed out",

Here is my requirements file:

---
collections:
  - name: cyberark.pas
    source: https://galaxy.ansible.com

After reading this ansible-galaxy timeout issue https://github.com/ansible/galaxy/issues/2302 I thought I would change getting the collection from Github. I found the collection here: https://github.com/cyberark/ansible-security-automation-collection and changed my requirements file to look like this:

---
collections:
  - name: https://github.com/cyberark/ansible-security-automation-collection.git
    type: git

When I run this from AWX I get the error that it is expecting a .tar file and this is not a .tar file.

I was hoping someone might be able to help me with what I'm doing wrong.

0

There are 0 best solutions below