Questions tagged [ansible-collections]

29 questions
0
votes
0 answers

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, but AWX is still use old version…
0
votes
0 answers

Unable to find ansible collections when ansible tower is disconnected

I have an ansible tower (4.1 part of AAP 2.0) that is disconnected from the internet. I'm trying to get a job template to recognize the Ansible collection. I updated the ansible.cfg with collections_paths=/usr/share/ansible/collections. I tried a…
bnolf
  • 1
  • 1
0
votes
0 answers

ansible mssql issue ( ansible-galaxy module)

I am trying to query the sql server from ansible controller. Using the ansible-galaxy in built collections. The server is accessible and WINRM is working. But still I am getting the below error message. Can anyone suggest what is the issue ?…
0
votes
2 answers

Ansible can't find roles from collection

I got collection that has structure namespace/ ── collectionA/ ├── docs/ ├── galaxy.yml ├── README.md └── roles/ ├── roleA/ | └── tasks/ | ├──taskA.yml | ├──taskB.yml └──…
darvark
  • 314
  • 3
  • 15
0
votes
1 answer

Is it possible to run a tasklist from within an Ansible module?

I am developing a collection containing a number of playbooks for complex system configurations. However, I'd like to simplify the usage of them to a single module plugin, named 'install'. In the Python code of the module will be decided what…
JG801
  • 121
  • 2
  • 7
0
votes
1 answer

Couldn't find api version for Microsoft.DataFactory/factories?api-version=2018-06-01

I am querying the data factories within a resource group but I couldn't make it work. I can query it through the rest api but not through azure_rm_resource_info ansible module: - name: Check if Data Factory ({{ az_datafactory_name }}) already…
0
votes
0 answers

Installing Ansible Collections on RHEL

I am trying to install Ansible collections for ServiceNow (ServiceNow collections) on RHEL 8.5 using ansible version 2.9.27, however the note on provided webpage states that Installing collections with ansible-galaxy is only supported in ansible…
Dominik Stolarz
  • 187
  • 1
  • 5
0
votes
1 answer

Ansible collection with role-scope custom modules

I am trying to convert my pile of Ansible playbooks, roles, tasks, etc into a formalized Ansible Collection to better support re-use and modularity. The TL;DR is that I am having issues packaging a collection that includes a role that includes a…
enpaul
  • 246
  • 4
  • 13
0
votes
0 answers

ansible is not looking at the collections defined in the collections-path in ansible.cfg

I have local collections folder in my ansible playbook folder. I also configured the path in the ansible.cfg. cat ansible.cfg [defaults] collections_paths = ./ansible_collections But when I run the playbook, it uses the path from python…
Anees Mohamed
  • 13
  • 1
  • 3
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
0 answers

ansible collection Exception: "CollectionModuleUtilLocator can only locate below", collection misplaced?

Using Ansible 2.10.7 : ansible 2.10.7 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/admin/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location =…
NeitoFR
  • 716
  • 1
  • 11
  • 23
0
votes
1 answer

ansible collections with host_vars

Is there a way to use the host_vars/ or group vars/ OR for that matter defaults/ or any sort of variable plugins from some_playbook.yml that consumes a custom collection. The imported role can't see any variables. #…
b0bu
  • 1,062
  • 1
  • 9
  • 24
0
votes
0 answers

Ansible Tower not finding collections

I am new to Ansible and very new to Ansible Tower 3.7.4 with Ansbile 2.9.15. I am trying to do a basic Template that runs an ansible script in a Git repo. Note: if I install ansible on a linux box with python, and ansible-galaxy, I can pull the…
ajpieri
  • 306
  • 3
  • 11
0
votes
1 answer

can an ansible plugin call a role or a playbook?

I have a big role i am looking to pack in a collection, and i want to create a plugin that does calls the role, instead of doing "include_role". so, i am looking for my customers to be able to put something like: - name: call my plugin my_plugin: …
Ehud Kaldor
  • 753
  • 1
  • 7
  • 20
1
2