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 ...
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 ...
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'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 a list of server names and a List of dicts for all clusters in an environment. The List of dictionaries contains the relevant servers in that c ...
Hey I am trying to check the version on installed software on my VMs with Ansible. Unfortunately I cant get the conditionals right. Via the ansible_ ...
I am trying to get the size_available value for the /home filesystem from the ansible facts. I am using the following code after setting gather_facts ...
Given the below output of application_stop_time_output, I want to create a list of dicts which contain only item and stdout. stdout should be an inter ...
Want to compare values with list for int and display msg values greater than 15 tasks: - name: Create a List variable and print it set_f ...
I want to remove the all "test" folders inside the subdirectories of server. Like below is the path of "test" folders. There are multiple directories ...
I have written this a simplified example but it should be enough as a minimal reproducible code. I want to be able to generate a list of hosts from my ...
I have the following playbook: - name: Get-IP hosts: webservers tasks: - debug: var=ansible_all_ipv4_addresses register: foo - d ...
I have a Jinja template where I'm trying to extract the master and replica hosts IPs like this: <node> <host>{{ hostvars[master|d ...
Below is how i call my ansible-playbook for application names APP1 & APP2 Playbook: Desired Expected Output: PLAY [['qa_APP1_cluster_wla ...
I have the following ansible playbook code which prints the some metrices of one remote server. Here I want to print the output in the csv file with t ...
I'm struggling to get a solution for this: I need to create a CSV file with all the filesystems and respective mountpoints on every server, using Ans ...
I'm trying to understand just how set facts would help me to create "facts" on the fly that I can then use in subsequent runs. To that end I've create ...
I need a help with my playbook. Im currently capturing filesystem and utilization related details from Restricted Bash VM (Management Console) and wou ...
lhost.j2 file contents: test.yaml error : "AnsibleUndefinedVariable: 'dict object' has no attribute 'default_ipv4'" Here is the result of ip ...
Ansible Version: 2.9 Main goal: Run task on every OS except: RedHat/AlmaLinux/CentOS/CloudLinux in and above 8 version. I run this role on AlmaLinux ...
I am learning Ansible and I am observe that the variable (fact) naming seems to be inconsistent. For example, my Jinja2 template can run successfully ...