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

Manage conflicting dependencies with ansible-galaxy

Problem: You have 2 (or more) playbooks, both of which use the ansible role xyz.very-useful-role. However, Playbook A uses version 2.x of the role, while (for whatever reason), Playbook B is stuck on version 1.x. Ansible, however, does not…
Michael A.
  • 4,163
  • 3
  • 28
  • 47
0
votes
1 answer

Integrate Ansible Role

My org has a monolithic ansible repository that we manually run from an engineer's machine. We do not have an ansible server. I want to re-use an ansible role that can be installed using galaxy. However, since we don't have an ansible server, I…
liltitus27
  • 1,670
  • 5
  • 29
  • 46
0
votes
1 answer

Is there any way we can run multiple roles with a particular user in Ansible

Is there any way we can run multiple roles with a particular sudo user using Ansible. If yes how can i do it . ansible 2.7.5
0
votes
1 answer

Ansible - using "include" and "include_tasks" modules

I've downloaded the docker role and when I'm running the role i get the following error: The error appears to have been in '/some_folder/geerlingguy.docker/tasks/main.yml': line 2, column 3, but may be elsewhere in the file depending on the exact…
Noam
  • 181
  • 2
  • 12
0
votes
1 answer

run tasks of ansible role on multiple hosts?

I wrote an ansible role to install elasticsearch multi node cluster, the problème is that i have a configuration files for each type of node (Master, Data).I have a problem to specify the host in each playbook. setup_elastic.yml --- - hosts: all …
Aymen
  • 11
  • 4
0
votes
3 answers

Update Ansible Galaxy Page

I've committed a role to galaxy.ansible.com Now I've pushed some changes to the README files on Github. How do I tell galaxy.ansible.com to re-read the Github repositories?
A. Gardner
  • 571
  • 2
  • 7
  • 17
0
votes
1 answer

Ansible No Content Found in Repository

I'm trying to import a role into Ansible galaxy but getting the error: No content found in repository Using: ansible-galaxy import Dynatrace-Adam-Gardner Dynatrace-Plugin-Development-Ansible This also fails via the galaxy website. I don't see…
A. Gardner
  • 571
  • 2
  • 7
  • 17
0
votes
2 answers

ansible-galaxy failing for init install - Failed to get data from the API server - a bytes-like object is required, not 'str'

ansible: ansible-galaxy 2.2.0.0 python: Python 2.7.10 I tried ansible-galaxy command to create a new role structure (init command) but it failed with the following message. So, I looked online and tried --offline option and structure creation part…
AKS
  • 16,482
  • 43
  • 166
  • 258
0
votes
1 answer

Elegant way to install Ansible task dependencies?

I am using a 3rd party Ansible role that requires some python libraries to be present on the host running my playbook. I expect Ansible Galaxy to actually install those dependencies for me, unfortunately, it's not the case since AG only install…
Nicolas Barbé
  • 604
  • 7
  • 12
0
votes
1 answer

How to modify the Ansible-galaxy timeout while installing roles from git

I have a little heavy Ansible role in Git which I am trying to install in my local using ansible-galaxy but I am getting CRC check failed error may be because connection is timing out while downloading the role. Is there a way to increase the…
Sharath Arakere
  • 129
  • 2
  • 9
0
votes
1 answer

How to include tasks downloaded from Galaxy

I have next project roles: hosts site.yml /roles /proxy /tasks ... /web /tasks ... /worker /tasks ... /db /tasks ... I need to install chruby on web and worker. So installed…
Kirill Salykin
  • 681
  • 6
  • 19
0
votes
1 answer

Best-practice for using an ansible role from galaxy in multiple roles?

I am working on an ansible playbook for our infrastructure. I have the following recurring need for which I have yet to find a recommended pattern: I have a server that needs to run multiple vhosts (/databases/rbenv environment/etc). I can install…
Matthias Winkelmann
  • 15,870
  • 7
  • 64
  • 76
0
votes
1 answer

How do I configure TFS 2015 Version Control Permissions to allow anonymous git clone?

I am attempting to allow anonymous clone from our TFS 2015 git repositories so that ansible-galaxy can pull from our repos without having to log into git.
0
votes
1 answer

Run tasks in ansible before pre provisioning

I have a set of taks in my playbook that I would like to run before ansible checks to see if roles exist. (One installs roles from galaxy and github) Right now, it appears, that ansible checks if all of the roles referenced exist prior to running…
RockyMountainHigh
  • 2,871
  • 5
  • 34
  • 68
0
votes
1 answer

How can to get a curated list of Ansible Galaxy roles?

Ansible galaxy concept is great as it supposed to promote playbook reuse. Still because it lacks any serious filtering or curating methods it became a victim of its own success: there are too many options to pick from and most of them (if not all)…
sorin
  • 161,544
  • 178
  • 535
  • 806
1 2 3
8
9