I want to create a new dictionary list, 'path: value' to be looped for each user and appended under each item in the user list. The end result would l ...
I want to create a new dictionary list, 'path: value' to be looped for each user and appended under each item in the user list. The end result would l ...
On an isolated network (without internet access to do public IP address lookups), I want to run a playbook from a Control Node against a number of Tar ...
ansible-playbook hosts can not use jinja2 for matching more hosts when i need to install more same service in one host in test env, i write a group l ...
I am trying to use the mysql_query statement to update records in my database. Can anyone understand why this code would not work and how I would man ...
I would like to use jinja logic in my template: I've already tried true without '' and instead of true is defined but still no success. The logic i ...
I'm trying to write a json file with a list of ip addresses formatted as "http://{ip_address}:{port}" as a part of an ansible playbook. I'm able to ge ...
I have a simple dict that has all details about domains. I am able to extract the details if I pass the second level as a variable for example My p ...
i got following pb to add multiple lines to chrony.conf but the change put all 3 ntp servers in one line instead of 3. any idea? ...
I am writing a simple Ansible playbook (Ansible version - 2.9) to start a service and then want to extract certain fields – "changed" and "failed" – f ...
I'm trying to make a list with IP addresses of various hosts and then use this list in another task. My question is, how can I pick an IP (I need the ...
I have the following script that attempts to install a package on a node only when not already installed. But the problem here is that if I have a ...
I'm struggling to implement something like a "recursive function" in Ansible, but it seems to be a slightly tricky task. Let's say, I have a tree-lik ...
We have dozens of Ansible roles with tasks which have been tagged with pretty standard labels along with other labels which are broadly in line with t ...
I have the current node role: $ tree roles/node roles/node ├── defaults │ └── main.yaml └── tasks ├── main.yaml &nbs ...
I have these encrypted strings in my role's var/main.yml file ... ... and everything works fine. BUT I was told that I need to not define this in t ...
name[missing] rule is not checked for the standalone playbook. however, its checked for the role though. here is an example ansible-playbook I tested ...
I'm attempting to loop over a list ( I think) with a conditional which also is a list. According to the documentation the conditional should be re-eva ...
I'm using Ansible to retrieve a list of website we host over 50+ servers. I'm using a SQL query to store in a text file named as hostname_websites.txt ...
I want to encrypt my host credentials in a central secrets.yml file. How can I tell Ansible, to use the variables? I tried with this setup: host_va ...
The above is for the test environment and the below is for prod environment: In my playbook, I have the following: I want to now apply that ro ...