The Ansible Community Forum
1 FOLLOWERS
Latest topics
The Ansible Community Forum
1h ago
Hi team,
We are using the K8s module to patch our config map file.
The config map file which we are patching has 2 data.
The data which we pass its replacing the actual data.
We want to append the data in the current data field
Our code:
- name: Configure prometheus-server-conf
kubernetes.core.k8s:
state: patched
kind: ConfigMap
name: prometheus-server-conf
namespace: monitoring
definition:
data:
prometheus.yml: |-
scrape_configs:
- job_name: "ceph"
static_configs:
- targets: [' 10.0.1.34:9283', ' 10.0.1.3 ..read more
The Ansible Community Forum
12h ago
Hello all,
After working creating Job Templates in Ansible Automation Platform 2.2, I am trying to work on setting up something similar in AWX. Mind you I did not take care of the Ansible Environment; I did most of the development for the company I was working for.
So I have a problem since I work almost entirely in Windows environments, and I have been slowly learning Linux and Ansible in the past few years. Needless to say, my prowess is no where near to my almost 30 years of working on Windows Environments, so I apologize if I say ignorant things or ask dumb questions.
Setting up AWX has be ..read more
The Ansible Community Forum
17h ago
Hello,
I am currently working with AWX and I would like to know if it’s possible to use the limit value (which is defined by AWX) in the extra variables or directly within my playbook variables. Specifically, I want to set a variable region to have the same value as the limit.
Here’s what I have tried so far:
---
ansible_ssh_timeout: 60
ansible_user: ubuntu
region: "{{ limit }}"
build_number: latest
However, when I run my job, the region variable gets the value:
"region": {
"[object Object]": null
}
Instead of the expected limit value.
Could someone please guide me on how to correctly re ..read more
The Ansible Community Forum
19h ago
This forum doesn’t appear to be listed on the new Discourse directory:
Discourse Discover Discourse Discover
Discover your next favourite Discourse community.
I’d suggest that it should be:
Opting in is straightforward. Head over to to Admin > Settings and filter for the term “discover”. Check the checkbox next to “include in discourse discover” and voilà, your instance will be included in Discourse Discover.
More info on this here:
Discourse Meta – 13 Feb 24
Introducing Discourse Discover
announcements
new-feature discourse-discover
We’re working on a new initiative aimed at making Di ..read more
The Ansible Community Forum
2d ago
Ansible Community Meeting | Ansible Community Working Group | #community:ansible.com Meeting started by @felixfontein:matrix.org at 2024-05-15 18:00:17
Meeting summary
INFO: Agenda: https://forum.ansible.com/tags/c/project/7/community-wg-nextmtg / Topics: https://forum.ansible.com/tags/c/project/7/community-wg (@felixfontein:matrix.org, 18:00:32)
INFO: Past meeting logs: https://forum.ansible.com/tags/c/workflow/meetbot/16/community-wg (@felixfontein:matrix.org, 18:00:34)
INFO: ansible-core 2.17.0rc2 has been released (https://forum.ansible.com/t/5787), the next expected release is 2.17.0 b ..read more
The Ansible Community Forum
2d ago
Hello All,
So I’m trying to run a playbook to get my NetApp cluster version. I can SSH directly to the machine(s) I’m trying to test against in the host file, but ansible just won’t connect. I’m running this playbook through AWX. The credentials have been verified multiple times.
It’s always some simple solution, but I’m sure one of the many experts here can help!
Ansible 2.16
NetApp Collection 22.11.0
> ---
> - name: Get NetApp cluster version
> hosts: all
> gather_facts: no
> collections:
> - netapp.ontap
> vars:
> netapp_host: 'single'
> netap ..read more
The Ansible Community Forum
2d ago
We’re having issues establishing a WinRM session to a windows workstation. As a test I’m using win_ping to attempt to get a response. I’ve tried basic and ntlm transport methods which both failed. The following output is the vars I have set in my inventory. Credentials have been obfuscated.
[workstation:vars]
ansible_user= ''
ansible_password= ''
ansible_become_password=''
ansible_connection= ansible.builtin.winrm
ansible_port= 5985
ansible_winrm_transport= ntlm
ansible_winrm_server_cert_validation= ignore
ansible_winrm_message_encryption= auto
This is the playbook used for testing
---
- na ..read more
The Ansible Community Forum
2d ago
Hi Ansible community,
is it possible to use YAML anchors, to populate module parameters in a loop?
Example 1: Doing it without anchors (currently working):
- name: "Create a Meraki RF profile"
vars:
rf_profiles:
- name: PROFILE1
bandSelectionType: ap
twoFourGhzSettings:
minBitrate: 24
channelWidth: auto
maxPower: 17
minPower: 5
- name: PROFILE2
bandSelectionType: ap
twoFourGhzSettings:
minBitrate: 36
channelWidth: auto
maxPower: 19
minPower: 2 ..read more
The Ansible Community Forum
2d ago
Hallo Team,
Referring the below closed topic
VCenter appliance root password expiration set module name & playbook issue
I found that there is no module. Check my output here
cd /usr/lib/python3.9/site-packages/ansible_collections/community/vmware/plugins/modules
ls -l vcenter_*
-rw-r--r--. 1 root root 6433 Nov 8 2023 vcenter_domain_user_group_info.py
-rw-r--r--. 1 root root 3397 Nov 8 2023 vcenter_extension_info.py
-rw-r--r--. 1 root root 7219 Nov 8 2023 vcenter_extension.py
-rw-r--r--. 1 root root 16819 Nov 8 2023 vcenter_folder.py
-rw-r--r--. 1 root root 9710 Nov 8 2023 ..read more
The Ansible Community Forum
2d ago
I have a decent amount of playbooks in an Ansible Runner Project and many tend to use some standard collections available from ansible-galaxy.
I wish to setup a requirements.txt file so that any python package that is a dependency for collections can be created in order to create VMs for my controller.
E.g. community.docker depends on docker python package, I tend to use blowfish cryptographic algorithm hence I need to install passlib etc.
I was wondering if there is some way to determine which collections are used in these sets of playbooks?
1 post - 1 participant
Read full topic ..read more