42 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
3
votes
2
answers
111
views
Can an ansible collection query its own metadata?
Assuming an ansible collection with the following galaxy.yml file:
namespace: my-company
name: test
version: "1.0.0"
... is there a way from a task in my collection to find the 1.0.0 in the ...
-1
votes
1
answer
280
views
Installed Ansible Galaxy collection gives module not found error
I installed Ansible Galaxy Collection: https://galaxy.ansible.com/ui/repo/published/git_ogawa/yaml/
I also installed requirements:
pip install jmespath
pip install ruamel.yaml
YAML file is
---
- name:...
2
votes
0
answers
68
views
"Invalid JWT token - 'exp' claim expired" error from ansible-galaxy
I'm building an execution environment and it fails running ansible-galaxy collection install. I get this error:
ERROR! Error when getting collection version metadata for redhat.satellite_operations:3....
6
votes
0
answers
308
views
How to import python functions from a module in a local Ansible collection?
I have a local Ansible collection. This is what my folder structure looks like:
/
|_ collections
| |_ ansible_collections
| |_ my # Namespace
| |_ tools # Collection
| |_ plugins
...
0
votes
1
answer
272
views
Create an ansible collection and use it on a playbook from gitlab
I created an ansible collection with 2 roles for deploy node_explorer and configure firewall. I'm on ansible 2.12
This is the root directory in the gitlab repository where it's stock (generate with ...
0
votes
1
answer
142
views
Failed to import the required Python library (python-ldap) using Ansible inside a Podman Container Using Alpine
I ran a playbook from the container, but it failed with the following error message:
"Failed to import the required Python library (python-ldap) on rocky9.localdomain's Python /usr/bin/python3.9. ...
1
vote
1
answer
972
views
How do I install a built Ansible collection (tar.gz) directly from a http url without a Galaxy server or using Ansible Galaxy?
The Ansible collections documentation
provides a number of ways for installing collections. The primary focus is on installing
from Ansible Galaxy.
However, I would like to host and install built ...
1
vote
0
answers
81
views
Error running ansible-test on community.aws collection
I'm trying to run integration tests on the Ansible collection community.aws.
I installed Ansible, forked and cloned the repo, and created the cloud-config-aws.ini file. However, when I run
ansible-...
1
vote
2
answers
7k
views
How can I install community.general collection in Ansible, using Ansible? With task run only when it is missing?
Right now I have
---
- name: Install community.general collection
command: ansible-galaxy collection install community.general
changed_when: True
which works, but will report that something was ...
2
votes
1
answer
868
views
When developing Ansible plugins, how should you use module_utils imports?
When developing custom Ansible modules in an Ansible collection, you often want to share code between multiple modules.
If I have the following directory structure in my collection:
collection/
...
...
1
vote
0
answers
273
views
Ansible Collection install, and detached head when using git tag
When managing my ansible collection, I see significant advantages of using git tags for managing controlled releases of versions for improvements, fixes and so on, and 'rolling back'.
However when ...
1
vote
0
answers
1k
views
Filter plugin can no longer be found when using ansible collections
I have a repository I am using to host an ansible collection, it contains an example task within the t1 role, using a custom filter plugin I have created:
---
# tasks file for t1
- name: "...
0
votes
1
answer
85
views
Using ansible modules to create gke clusters failing
I am using Ansible' to create GKE` cluster using the below module
https://docs.ansible.com/ansible/latest/collections/google/cloud/gcp_container_cluster_module.html
It was working earlier ...
0
votes
1
answer
1k
views
Ansible: best way to handle default variables in a collection
I've written an ansible script to install a web application made of several components. While I've originally written it as a collection of several roles, I'm wondering whether this is the best way to ...
1
vote
2
answers
2k
views
How To Upgrade ansible Collection In AWX Container?
I use AWX 17.0.1 Service On docker,
I Want to use ansible collection community.vmware. and i need recent release version collection.
So I did install community.vmware collection in awx_task container, ...