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
Questions tagged [ansible-galaxy]
128 questions
5
votes
1 answer
ERROR! couldn't resolve module/action 'community.aws.ec2_instance_info'.This often indicates a misspelling,missing collection,or incorrect module path
I have a few Ubuntu 18.04 machines with ansible installed. When running ansible --version on all of them, I get the following output:
ansible 2.9.27
config file = /etc/ansible/ansible.cfg
configured module search path =…

Ciprian Stoica
- 2,309
- 5
- 22
- 36
5
votes
2 answers
Running Oracle SQL scripts with Ansible playbook
A look at the core database modules in Ansible documentation shows no signs of a module for Oracle. What is the best way to handle SQL/PLSQL deployments via Ansible for Oracle databases?
Are we expected to use roles from Ansible Galaxy to handle…

Irfan N
- 93
- 1
- 1
- 7
5
votes
1 answer
Specify version of role in Ansible playbook
When downloading roles it's possible to specify roles. One of several ways would be with the following requirements.yml file:
---
- src: https://github.com/jdauphant/ansible-role-ssl-certs
version: v1.5.2
This role could then be downloaded with…

Leonard Saers
- 649
- 9
- 28
4
votes
1 answer
How to install galaxy role with a different name than in git url?
There is a galaxy role: git@site.net/ansible-myapp.git
I can install it like this:
ansible-galaxy install git+git@site.net/ansible-myapp.git
, but it creates a role with the name "ansible-myapp".
How can I install a role with a different name than…

Max Block
- 1,134
- 3
- 16
- 23
4
votes
1 answer
Unable to install ansible-galaxy roles from within a Jenksinfile to build and deploy infrastructure with (git)scm referenced roles
I have the following jenkinsfile
pipeline {
agent {
dockerfile {
args "-u root -v /var/run/docker.sock:/var/run/docker.sock"
}
}
environment {
ESXI_CREDS = credentials('ESXI_CREDS')
PACKER_LOG…

Madu Alikor
- 2,544
- 4
- 21
- 36
4
votes
0 answers
Is ansible-galaxy able to use semver when going to a git or github repository?
The title pretty much gives the whole question but to elaborate, I have a requirements.yml or a meta/main.yml that might look like:
- src: git@github.com:user/repo.git
scm: git
version: ~v1.0.0
or perhaps
- src: git@github.com:user/repo.git
…

pedz
- 2,271
- 1
- 17
- 20
4
votes
1 answer
How to publish ansible-galaxy role in my organization name?
I am connected to Ansible Galaxy and my company Organization allows ansible-galaxy to index its GitHub repositories and is correctly listed as a "namespace" provider.
However, when I try to add a new role with "add content", it is added as a content…

Jean-Bernard Jansen
- 7,544
- 2
- 20
- 17
4
votes
1 answer
Is it possible for ansible-galaxy install to initialise submodules?
I have this requirements.yml snippet:
- name: myrole
scm: git
src: git@gitlab.mygitlab.com:category/project.git
version: master
When I install it using ansible-galaxy install -r requirements.yml, the repository is cloned properly, but the…

sudosensei
- 387
- 5
- 14
4
votes
1 answer
Ansible galaxy provisionner is not using private key in Vagrant
I have the following vagrantfile
Vagrant.configure(2) do |config|
config.ssh.insert_key = true
config.vm.define "dev" do |app|
app.vm.provider "docker" do |d|
d.image = "allansimon/allan-docker-dev-python"
d.has_ssh = true
…

allan.simon
- 3,886
- 6
- 35
- 60
4
votes
2 answers
ansible galaxy - install role from repo
I have a git project with few roles in the playbook, I want to use one of the roles in ansible galaxy.
The clone of the repo is working but it fails in the stage of archive it:
executing: git clone https://myuser@github.com/my-project/search-mysql…

A1001
- 111
- 2
- 7
4
votes
2 answers
How to distribute ansible modules?
If someone develops an ansible role, it can be easily distributed by creating a repo on github that will be available for installation through ansible-galaxy (very clear instructions).
What about modules?
Is there a similar "supporting framework" to…

Vincenzo Pii
- 18,961
- 8
- 39
- 49
3
votes
1 answer
"The specified collections path is not part of the configured Ansible collections paths" but I'm installing into a relative directory
I'm installing the ansible.posix collection to use in my playbook like this:
ansible-galaxy collection install -r ansible/requirements.yml -p ansible/collections
However, I get this warning message that I want to get rid of:
[WARNING]: The…

2rs2ts
- 10,662
- 10
- 51
- 95
3
votes
1 answer
Collections in Ansible galaxy yaml file was ignored when I run install command
---
roles:
-
name: Aplyca.S3fs
-
name: badpacketsllc.aws_cli
version: v1.0.3
-
name: geerlingguy.nodejs
version: 5.1.1
-
name: geerlingguy.filebeat
version: 3.0.2
-
…

tom10271
- 4,222
- 5
- 33
- 62
3
votes
1 answer
ansible-galaxy collection install timeout
I've got a problem with installing ansible collection which is ending with timeout
# ansible-galaxy collection install community.general -vvvv
ansible-galaxy 2.9.9
config file = /etc/ansible/ansible.cfg
configured module search path =…

Facty
- 472
- 4
- 12
3
votes
1 answer
Install Ansible Galaxy role as git repository
I have a requirements.yml file with the following contents:
- src: git@github.com:SomeOrg/SomeRole.git
scm: git
version: master
name: some-role
If I run ansible-galaxy, the role gets includes in the roles directory as expected. The role ends…

Jeroen De Dauw
- 10,321
- 15
- 56
- 79