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

ansible-galaxy login: Unexpected Exception: No JSON object could be decoded

I have been search all over and can't seem to solve this issue. I am trying to setup the Travis integration for the ansible role. According to the docs I need to authenticate first. I then run ansible-galaxy login, provide my github details and…
-1
votes
1 answer

ansible multiple blockinfile tasks in a single file with when

I have found that using multiple blockinfile tasks in the single file with when condition not working , seems to the last blockinfile task will have priority over other block , even fist block met the correct condition output result does not…
chamara
  • 15
  • 4
-1
votes
1 answer

How do I use a Ansible Galaxy role in a task that requires root privileges?

I wrote a playbook that uses a set of roles according the suggested structure https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_reuse_roles.html#role-directory-structure Now I want to use a Ansible Galaxy dependency for the first time…
jan
  • 2,741
  • 4
  • 35
  • 56
-1
votes
1 answer

"Failed to import the required Python library (kubernetes)" despite the kubernetes module being installed

I'm running Ansible on macOS 12.4 and I have following task which uses kubernetes.core.k8s module. - name: "apply {{ downloaded_metallb_manifest }}" kubernetes.core.k8s: src: "{{ downloaded_metallb_manifest }}" state: present wait:…
learnd
  • 77
  • 5
-1
votes
2 answers

Trouble running pattern match on cisco iosxr command in Ansible

I have a regex that matches everything after a certain word. When I call this pattern_match in my playbook I get the following error: *ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path. The…
marky23
  • 1
  • 2
-1
votes
1 answer

Ansible role checking path of dynamic variable within task

I have a couple of ansible role tasks which I am using to setup a number of configuration directories. The problem is that I have a list of configurations which need to be setup with a certain path but only if they do not exist. - name: Ensure core…
dcmbrown
  • 1,049
  • 9
  • 15
-1
votes
1 answer

How to use a role from a multi-file playbook

I have a playbook organized as follows (simplified for the sake of this question): ├── deploy.yml ├── hosts ├── requirements.yml ├── roles │   └── web │   ├── meta │   │   └── main.yml │   └── tasks │   └── main.yml └──…
Davide
  • 17,098
  • 11
  • 52
  • 68
-2
votes
1 answer

Fix ansible-playbook error: "ERROR! the role 'zzet.rbenv' was not found in ..."

I am running ansible like so: ansible-playbook -i hosts setup_my_host_name.yml I am getting the error: ERROR! the role 'zzet.rbenv' was not found in…
Timur Shtatland
  • 12,024
  • 2
  • 30
  • 47
1 2 3
8
9