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
0
votes
2 answers
Is ios_logging_global idempontent?
This is my playbok. I'm trying to add a new logging server to my switches.
---
- name: "Add new logging server"
hosts: all
gather_facts: no
tasks:
- name: Add logging server
cisco.ios.ios_logging_global:
config:
…

Fredrik Karlsson
- 113
- 1
- 1
- 9
0
votes
0 answers
Ansible-Galaxy for private gitlab repo referencing only one role's files for all roles
I am just diving into hosting custom made roles in a private gitlab git repository.
The answer to this may just be "you must have only 1 repo for 1 role," which I have not done. I have tried to put two roles in a repo and have just used folders to…

ZZTest
- 89
- 7
0
votes
1 answer
"community.kubernetes.k8s" can't be resolved in Ansible even if the collection is installed
I want to create some Kubernetes objects using Ansible. The community.kubernetes.k8s can do this, which is included in the community.kubernetes collection. When I try to create a namespace
- name: Create ns
community.kubernetes.k8s:
…

Lion
- 16,606
- 23
- 86
- 148
0
votes
1 answer
Ansible failing to run Terraform Plan
I have automated ansible playbook to generate Terraform files required to create AWS resources in a folder. Once the files are generated, ansible tasks runs terraform plan(using below plan code) but it is failing with below error(error)
Ansible…

NeverStopLearning
- 23
- 8
0
votes
2 answers
ansible-galaxy fails to pull roles in gitlab-ci pipeline
ansible-lint step in gitlab-ci pipeline is failing because of authentication error while running the ansible-galaxy install -r requirements.yml that pulls the roles dependency defined in the requirements.yml and clone the roles from git.
I tried…

Devesh mehta
- 1,505
- 8
- 22
0
votes
1 answer
Ansible roles using requirements.yml
I have a private Ansible git repo which I would like to use in another repo. So I installed the role locally using requirements.yml. my question now is, when I git push my requirements.yml, how will it be consumed by my other peers when executing in…

suj
- 507
- 1
- 8
- 22
0
votes
0 answers
ansible-galaxy install ahuffman.resolv does not work
I thought I had found something that would make managing the /etc/resolv.conf file easy. https://galaxy.ansible.com/ahuffman/resolv but when I try to install this role as per the documentation like so ...
bash-3.2$ ansible-galaxy install…

Red Cricket
- 9,762
- 21
- 81
- 166
0
votes
1 answer
What is the purpose of GitHub organization namespaces in Ansible Galaxy for collections
I noticed in Ansible Galaxy that when I navigate to https://galaxy.ansible.com/my-content/namespaces I see two namespaces:
One corresponds with my GitHub username let's say user.
One corresponds with a GitHub organization I created let's say…

onknows
- 6,151
- 12
- 65
- 109
0
votes
2 answers
ansible-local in packer wont pickup collections
I am using an ansible-local provisioner in Packer, and trying to use the community.general collection, however I cannot get my playbook to see it at all.
The Packer code is:
{
"type": "ansible-local",
"staging_directory":…

apr_1985
- 1,764
- 2
- 14
- 27
0
votes
0 answers
How create .git directory in git directory parent
I would like to use ansible-galaxy with my own role and own repo.
I need to call each role separately
I want to create a parent folder named roles and subdirectory with role httpd - mysql etc
Each role must be cloned without other roles
src :…

Rabah DevOps
- 67
- 7
0
votes
1 answer
ANSIBLE_ROLES_PATH cannot assume to get correct role in bash script
From Ansible: Can I execute role from command line? -
HOST_PATTERN=$1
shift
ROLE=$1
shift
echo "To apply role \"$ROLE\" to host/group \"$HOST_PATTERN\"..."
export ANSIBLE_ROLES_PATH="$(pwd)/roles"
export…

PPShein
- 13,309
- 42
- 142
- 227
0
votes
1 answer
Install specific MongoDB version using enix.mongodb Ansible Galaxy role
I want to modify an Ansible playbook to install a specific version of MongoDB using the enix.mongodb role. According to the docs there is a mongodb_version role variable that I can set to do this. I have tried updating the Ansible playbook, but it…

Sean Barry
- 61
- 2
- 6
0
votes
0 answers
How to determine the src and version to install role using requirements.yml via linux shell
I am trying to get the src and version details using the ansible-galaxy cli without using the internet for example :
[ansible@server exam]$ ansible-galaxy info bennojoy.ntp
Role: bennojoy.ntp
description: ansible role ntp
active: True
…

abduls85
- 548
- 8
- 15
0
votes
1 answer
What Ansible Galaxy role should I use for a simple one node MongoDB instance
On the Ansible Galaxy there are thousands of MongoDB roles. This makes it hard to find a suitable role for creating a simple MongoDB instance for example for Rocket.Chat.
Is there a tried and tested Ansible Galaxy role or role on GitHub that you can…

onknows
- 6,151
- 12
- 65
- 109
0
votes
0 answers
Ansible : How to install roles from requirements with parametrized branch variable
i want to install some roles from my requirements.yaml file ,
which looks like this :
requirements.yaml:
- src: git@gitlab.company.com:mygroup/ansible-base.git
scm: git
version: "mybranch" #MY BRANCH AS PARAMETER
to install , i'm used to run…

firasKoubaa
- 6,439
- 25
- 79
- 148