Questions tagged [ansible-galaxy]

Use this tag for questions regarding Ansible Galaxy (a site for publishing and downloading the roles) and the `ansible-galaxy` command-line tool. For general questions regarding Ansible roles use tag:ansible-role

128 questions
0
votes
0 answers

How to enable force_basic_auth in Ansible Galaxy when installing roles?

I have Ansible roles packed and uploaded in JFrog Artifactory. Username and password or username and identity token (passed as password) need to be provided to download files. When I download any files from Artifactory, I need to set…
0
votes
1 answer

How to install Ansible Galaxy Role ontic.fonts?

I try to install the Ansible Galaxy role https://github.com/ontic/ansible-role-fonts and don't find any help in connection with the error message. Here is what happens: $ ansible-galaxy install ontic.fonts Starting galaxy role install process -…
jan
  • 2,741
  • 4
  • 35
  • 56
0
votes
1 answer

ansible-galaxy command not using http_proxy

I have a strange problem. For some reason, ansible-galaxy command is not using my defined http proxy. I am getting the following error: sudo ansible-galaxy collection install community.docker [sudo] password for : [WARNING]: - collection was…
DB_Tz
  • 1
  • 1
0
votes
0 answers

Ansible AWX returns error: template error while templating string: unable to locate collection community.general

I am working on a project using ansible AWX. In this project I have a check to see if all my microk8s pods are in the state running. Before I installed AWX I was testing all my plays on my linux vm. The following play worked fine on my linux vm but…
Lars
  • 1
  • 1
0
votes
0 answers

Ansible installation role asynchronous way

In my centralized ansible environment, I have a lot of roles in requirements and when running pipelines on ephemeral servers, it takes a long time to pull the roles and install it one by one from requirements. To reduce the pull time, one solution…
GoA Oz
  • 328
  • 1
  • 13
0
votes
1 answer

Install a specific version of a role with Ansible Galaxy

I'm installing an ansible role with: ansible-galaxy install geerlingguy.java But this command install the latest version. I need to install an old version like: ansible-galaxy install geerlingguy.java:1.10.0 But this command launches this…
Manel
  • 1
  • 2
0
votes
0 answers

ansible mssql issue ( ansible-galaxy module)

I am trying to query the sql server from ansible controller. Using the ansible-galaxy in built collections. The server is accessible and WINRM is working. But still I am getting the below error message. Can anyone suggest what is the issue ?…
0
votes
0 answers

Delegate installation of a subproject with Ansible

I'm having trouble to figure out how to delegate the installation of a subproject with Ansible. Here is my situation I maintain 2 projects, one of them is used by the other. Let's call them: - Project_parent - Project_child I already wrote an…
Wenzel
  • 147
  • 1
  • 14
0
votes
1 answer

How do I add PATH to the ansible_galaxy_install module?

When attempting to install an ansible collection using ansible_galaxy_install, I receive the following error: "Failed to find required executable \"ansible-galaxy\" in paths:…
user2514157
  • 545
  • 6
  • 24
0
votes
1 answer

Issue with installing ansible-galaxy azure.azcollection

[root@jenkins-dev playbooks]# ansible-galaxy collection install azure.azcollection ERROR! Unexpected Exception, this is probably a bug: cannot import name 'CollectionRequirement' from 'ansible.galaxy.collection'…
0
votes
1 answer

Which tools use the "tests" directory in an Ansible role by default?

The ansible-galaxy tool can create a skeleton of an Ansible role. (ansible-galaxy role init myrolename) Inside is a tests directory, but the Ansible documentation does not mention what it's for. Presumably tests of some sort, but who runs them, and…
De117
  • 351
  • 2
  • 11
0
votes
0 answers

Import Ansible role into a non-default Galaxy namespace

The latest Galaxy Developer Guide provides "no" information on how a role can be imported in a non-user namespace. There is no mention of the word namespace on that page. So roles I import in automated fashion for example via GitHub actions or…
onknows
  • 6,151
  • 12
  • 65
  • 109
0
votes
0 answers

Can I use variables in Ansible Galaxy 'requirements.yml' file?

Need to find out how to bring in a variable file (yaml format) from the playbook into the requirements.yml file. Something that could be used for this format: - src: git+https://www.gitrepo.com/path/to/gitrepo.git name: gitrepo_name …
0
votes
1 answer

Ansible install collection offline

I'm trying to install Ansible from a tar file, but I seem to face issue regarding that: ansible-galaxy collection install azure-azcollection-1.10.0.tar.gz Ansible version is 2.10 00:03:08.902 [0mansible-galaxy 2.10.15 00:03:08.902 config file…
WhoAmI
  • 1,013
  • 2
  • 9
  • 19
0
votes
1 answer

I can't install a role from github by the version tag

The repo and tag look good to me. I can install it without specifying the tag, but then it's not versioned: Starting galaxy role install process [WARNING]: - ansible-role-shell was NOT installed successfully: - command /usr/bin/git checkout v0.0.1…
Nate Marks
  • 197
  • 1
  • 6
1 2 3
8 9