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
1
vote
1 answer

AWX fails to retrieve collections from Ansible Galaxy

I have a project with roles/requirements.yml and collections/requirements.yml. This - I think - per AWX / Tower guidelines. On project update the roles/requirements.yml is picked up successfully but the collections/requirements.yml fails with a…
onknows
  • 6,151
  • 12
  • 65
  • 109
1
vote
1 answer

Is there a way to use galaxy roles without downloading them?

I'm running ansible within terraform. I downloaded a galaxy role using: ansible-galaxy install This downloaded it to my ~/.ansible/roles directory. But when I referenced the role name in my ansible playbook that I use with terraform, it…
Nathan
  • 7,627
  • 11
  • 46
  • 80
1
vote
1 answer

Why is the . (dot) directory from "ansible-galaxy" command removed when using - Jenkins docker image

I'm trying to create a custom docker image using a Dockerfile. In my Dockerfile I have installed ansible and I can confirm this works from earlier experience, but when I am using the command ansible-galaxy to install a specific role or collection…
user1098490
  • 478
  • 1
  • 4
  • 16
1
vote
1 answer

Ansible Galaxy roles incorrect path

When i install anything via ansible-galaxy like ansible-galaxy install 1nfinitum.php it is saved in /root/.ansible/roles/1nfinitum.php but the default path like mentioned in Galaxy is /etc/ansible/roles My ansible.cfg #inventory =…
1
vote
0 answers

Publish Ansible role to Ansible Galaxy with gitlab-ci

I am developing some Ansible roles and I am using gitlab.com to host my git repositories. Because of the simplicity I only want to use Gitlab CI/CD to publish my Ansible roles to Ansible Galaxy. I found an example in the Ansible Galaxy…
dvonessen
  • 177
  • 1
  • 8
1
vote
0 answers

How to install all roles without skipping any using ansible-galaxy?

We are trying to install roles from git using ansible-galaxy requirements.yml, But 2 roles are getting skipped while cloning. command: ansible-galaxy install…
user7493752
1
vote
1 answer

Automatic Ansible custom modules installation with Ansible Galaxy

Is there any nice way to use Ansible Galaxy order to install and enable Ansible (2.7.9) custom modules? My requirement allows Ansible Galaxy to download the right Ansible role which embeds my custom module. Once ansible-galaxy install --roles-path…
Ninroot
  • 61
  • 1
  • 8
1
vote
1 answer

vagrant+ansible: avoid downloading again from ansible-galaxy

In my Vagrantfile I have something similar to: config.vm.provision "ansible" do |ansible| ansible.playbook = "provisioning/main.yml" ansible.galaxy_role_file = "provisioning/requirements.yml" end provisioning/requirements.yml contains…
Juan Leni
  • 6,982
  • 5
  • 55
  • 87
1
vote
2 answers

Install ansible galaxy using ansible

How do I install an ansible role using ansible? The manual way is using the command line: ansible-galaxy install user.role But how do I do it in ansible itself, like a module? I would guess something like this in a playbook: - tasks: galaxy: …
Allan Deamon
  • 418
  • 6
  • 18
1
vote
2 answers

How to use ansible role from galaxy with my own parameters?

I would like to use a role found on ansible galaxy: robertdebock.java I would like to use this role to install java with the version as parameter. I have tried this in my roles/java/tasks/main.yml file: - name: Install Java include_role: name:…
rico
  • 1,843
  • 2
  • 24
  • 41
1
vote
1 answer

How to install Juniper.junos ansible-galaxy in mac?

I tried to install the latest version of Juniper.junos on my Mac : sudo ansible-galaxy install Juniper.junos -downloading role 'junos', owned by Juniper -downloading role from…
1
vote
2 answers

How to create ansible galaxy roles in windows?

I am learning ansible from ansible-beginner to pro by micheal heap. It seems that ansible is not supported on windows. The book suggests running ansible from a virtual machine instead. I started a VMbox using vagrant, which has ubuntu/trusty64 on…
sushrut619
  • 843
  • 8
  • 20
1
vote
1 answer

Ansible Galaxy keep SCM files

I'm using the command: ansible-galaxy install -r requirements.yml where requirements.yml is: - src: https://github.com/USERNAME/ANSIBLE-ROLE.git version: master scm: git and it creates the directory: /etc/ansible/roles/ANSIBLE-ROLE How I can…
tvl
  • 3,868
  • 2
  • 16
  • 35
1
vote
1 answer

How to include galaxy role in your galaxy role?

I'd like to write some role and push it to the opensource. Before doing that, I'm interested in one thing - how to properly include third party galaxy roles ? I know, that I need to do specify this roles in meta/main.yml, I also read somewhere about…
Ivan Ursul
  • 3,251
  • 3
  • 18
  • 30
0
votes
0 answers

How can I fix Ansible's hashi_vault lookup despite installed hashivault collection and hvac package?

I need to debug a problem related to community.hashi_vault.hashi_vault lookup in ansible. I've installed everything needed - i.e hashivault galaxy collection & hvac python package - and yet, when I run the lookup - the playbook complains that I…
1 2 3
8 9