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
3
votes
2 answers

Test dependant Ansible roles with molecule and gilt, zero documentation

Currently building multiple Ansible roles for my company some of which will be marked as dependant on one another(think like a deploy [application] containers role thats dependant on the role docker to be installed). We run our automated tests…
Sefiris
  • 31
  • 1
3
votes
2 answers

ansible-galaxy fails on dependency with empty meta/main.yml

I have a requirements.yml file that lists dependencies for an Ansible Role: --- - src: git@gitrepo:group/dependency1.git scm: git name: name1 - src: git@gitrepo:group/dependency1.git scm: git name: name2 These roles do not have any…
Jamie Kelly
  • 309
  • 3
  • 15
3
votes
1 answer

What defines Ansible Galaxy role's version?

In documentation of Ansible Galaxy I found you can install specific version of a role. I was not able to find what defines the version in role itself. Is it Git tag, some key in meta/main.yaml, or something else?
Mailo Světel
  • 24,002
  • 5
  • 30
  • 40
3
votes
1 answer

ansible-galaxy install fails when specifying a version in requirements

Not sure if this is a bug in ansible-galaxy, but I'm trying to install roles from a requirements.yml file (related ansible documentation.) One of those roles is being pulled from git, with a specific version like so: requirements.yml: --- - src: …
thom_nic
  • 7,809
  • 6
  • 42
  • 43
2
votes
1 answer

Ansible Molecule ignores collection requirements

I like to use a git based Ansible Collection with my role and try to test that role with molecule. But when I run molecule, there isno output showing me, it is adding that collection nor it find the module/filter during runtime. molecule 4.0.4 using…
TRW
  • 876
  • 7
  • 23
2
votes
0 answers

Use different Ansible collection versions in one Molecule scenario

I have an Ansible collection to install some software. Each software version is attached to a separate collection version. To test an upgrade I need to apply an old collection version first and then run the new version. To achieve that, I slightly…
Anatoli
  • 889
  • 2
  • 15
  • 33
2
votes
1 answer

How do you list the versions of an Ansible Galaxy role using the ansible-galaxy command?

When I use "ansible-galaxy info author.role_name" I get substantial info, but not a list of previous versions. On the website, each role has a nice list of previous versions, but when I use info, there's no version list: [ansible@control]$…
2
votes
1 answer

Running local ansible to create local docker Image

Directory Structure build ├── docker-compose.dev.yml ├── playbooks │   ├── deploy-deps.yml │   └── setup-local-registry.yml ├── postgres │   └── DockerFile └── rabbitmq ├── DockerFile └── init.sh deploy-scripts ├── db-schema │   └──…
Sathish
  • 2,056
  • 3
  • 26
  • 40
2
votes
1 answer

Copy the ssl certificate from a server to a host in ansible

I'm trying to copy the Certificate of a local Container registry to a Docker host with ansible version 2.9.6. The registry is managed by someone else but within our local network. With the shell I would do it in this way: openssl s_client -showcerts…
sve_wo
  • 23
  • 4
2
votes
1 answer

ansible-galaxy - specify version range to install

I am trying to install an Ansible Galaxy collection, but I need to force an older revision. According to the documentation, I tried to perform installation the following ways: $ ansible-galaxy collection install…
Antwane
  • 20,760
  • 7
  • 51
  • 84
2
votes
2 answers

Ansible github_packages

There are two releases that can be obtained from a GitHub repo (Binary Releases and Package Releases) as shown below: I want to use Ansible to retrieve Package Releases from my GitHub Repo I did some searching on Ansible docs and found a collection…
Mervin Hemaraju
  • 1,921
  • 2
  • 22
  • 71
2
votes
0 answers

Ansible: installing roles in requirements file upon playbook execution

Vagrant has a very nice feature called galaxy_role_file that allows one to point to a requirements.yml file and to install the roles listed there upon vagrant up (provided that the vm is configured to use ansible provisioner). My question is whether…
pkaramol
  • 16,451
  • 43
  • 149
  • 324
2
votes
1 answer

How can I specify an Ansible role and its argument in the dependency list of another role?

How can I specify an Ansible role and its argument in the dependency list of dependent role, both of which are stored in separate Git repositories? Consider the following incorrect example where role tomcat depends on version 8 of role openjdk: #…
Derek Mahar
  • 27,608
  • 43
  • 124
  • 174
2
votes
1 answer

what is difference between ansible and ansible-galaxy

just wanted to understand what is the core difference between ansible and ansible-galaxy ? from docs, ansible-galaxy is to manage roles (create and publish) then what is the ansible is for ? to run just playbooks ? cant we create rols using ansible…
user2315104
  • 2,378
  • 7
  • 35
  • 54
2
votes
1 answer

Best way to manage local changes to Ansible Galaxy role

I am fairly new to Ansible. I am using a couple of Ansible roles that need some tweaking of specific tasks to work on CentOS 7. What is the best workflow to handle local changes to Ansible-Galaxy roles? Here are the options I am considering: Fork…
m3ta
  • 171
  • 7
1 2
3
8 9