Questions tagged [ansible]
Use this tag for questions about Ansible, an open-source automation engine, related to using Ansible for topics such as cloud provisioning, configuration management, application deployment, etc.
453 questions
1 vote
1 answer
32 views
Ansible How to set a variable globally
This question is about Ansible 2.16 and up. Background I am currently migrating from Ansible 2.16 to 2.19. Starting with version 2.17, the package module (and the dnf module and a few others) are ...
0 votes
1 answer
158 views
How to install Ansible collections using 'requirements.yml' so that 'ansible-lint' passes?
I have some Ansible playbooks and roles that work absolutely fine, but when I lint the Ansible, I get some failures around modules. $ ansible-lint --ignore-file .ansible-lint-ignore ./playbooks --...
0 votes
0 answers
72 views
Playbook using netcommon using a custom execution environment fails with Collection ansible.netcommon does not support Ansible version 2.15.13
The playbook in question was built by a previous engineer who used another custom EE task image, but I unfortunately don't have the input files or procedure he used to build the image. It is rather a ...
1 vote
1 answer
128 views
Ansible dynamic inventory script: [WARNING]: * Failed to parse ... Expecting value: line 1 column 1 (char 0)
I'm still somewhat new to Ansible and trying, for the first time, to use a dynamic inventory script for my EC2 inventory. My script "works" in the sense that, when I execute the script on ...
0 votes
1 answer
98 views
Ansible - how to use a variable in a script in a playbook
The overall intent of my playbook is to create a "hostname".key, "hostname".csr, and "hostname".req for over 500 hosts. I'm trying to run this command as a shell in a ...
0 votes
1 answer
70 views
Ansible: Showing progress of a `loop` in percentage
For an application which has list of micro services (~ 17-19) implemented with systemd and .service files I like to create a systemd task with a loop which is touching, stop or start each service. --- ...
0 votes
2 answers
71 views
How do I modify "inifiles" that don't have sections with ansible 2.16
In prior version of ansible (2.9), I could do something like: - name: update firewalld config community.general.ini_file: path: /etc/firewalld/firewalld.conf option: "backend" ...
1 vote
1 answer
130 views
Wireguard routing in a kubernetes home <-> cloud hybrid setup
I have decided to set up a kubernetes cluster using k3s, with a catch, one of the nodes I am using is one of the "always free" oracle cloud arm servers for a bit of extra punch. To ...