Category "ansible-2.x"

Merge 2 json arrays based on their keys

How can I merge 2 json arrays based on the same keys and add a 3rd item from the input json pog_id in the output json file? I have tried with the code mentioned

Ansible how to install a package only if same version not installed

I am trying to check the existing version of the package and run the install task if the same version is not been installed already. Below is the code I am tryi

How do I create an Ansible "pre-handler" that runs before the task but only if the task needs to run?

How do I create an Ansible "pre-handler" that runs before the task, but only if the task needs to run? In other words, Ansible will first check if the task need

ansible playbook error was: ModuleNotFoundError: No module named 'azure.mgmt.monitor.version' although the module is installed

After upgrading ansible to version 2.10.5 and python3.8.10 my playbook.yml fails with this error. ModuleNotFoundError: No module named 'azure.mgmt.monitor.versi

Ansible: Remove item from dict

I have a situation where i am trying to remove the item from a list. but i am not getting expected result. Please help me what I am doing wrong here? here is

Ansible inventory variable undefined

I've defined a variable in my inventory file, but i get error variable is undefined when using it in play condition. inventory.yml: [nodes] node1 .... node1 .

Create Ansibles remote_tmp from config file variable

I want to fix the following warning by manually creating the path: Wednesday 22 January 2020 12:50:41 +0100 (0:00:05.878) 0:20:16.431 ***** [WARNING]: