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
I'm trying to create a list of dictionaries, from a list of dictionaries which contains a key with a dictionary as a value. So, I want a list of dictionaries e
How to start Zookeeper and Kafka broker on remote target with Ansible Playbook. Following commands work fine locally. Start Zookeeper: cd /opt/kafka ./bin/zooke
I am including some tasks like shown below in my main.yml (as one of the tasks in a list of several other tasks) - name : remove swarm include_tasks
I'm new in Ansible. I'm working on an Ubunto machine. On the VM, I installed Ansible along with to apply play books to. When I run a playbook I receive the fol
After configuring winRM on a windows server and filling all needed information to connect : --- ### winrm / win connection ### ansible_winrm_realm: *My AD Dom
I am new to Ansible and try, as an example, a task to install Vivaldi. My only task in a role Vivaldi update starts with - name: Run apt upgrade apt:
When I use "ansible-galaxy info author.role_name" I get substantial info, but not a list of previous versions. On the website, each role has a nice list of prev
I have the following task: - name: Create required folders. become: true ansible.builtin.file: owner: "{{ item.key }}" group: ftp mode: '0755'
I am trying to use an environment variable inside of requirements.yml but it's not working - src: 'http://oauth2:{{ lookup("env", "GITLAB_TOKEN") }}@gitla
I have 2 variables as a list in ansible host_list: - 1.1.1.1 - 2.2.2.2 port_list: - 443 - 80 and I want to get the 3rd variable as a list of l
In my playbook, a JSON file is included using the include_vars module. The content of the JSON file is as given below: { "Component1": { "parameter1" : "
I'm managing a number of clusters, and I wanted to consolidate multiple inventory files into a single inventory that looks effectively like this: all: childre
I have set up an ansible tower using the following docker image ybalt/ansible-tower:latest After setting up I have upgraded the applications inside the conta
I am writing custom module but when I put the type as list and pass the values like below, I get the error unsupported parameters For type string it is workin
i've been trying to use ec2 image builder to harden a windows image using winrm and ansible playbooks that contain the scripts to my hardening. Since windows do
Recently I used 'user' module to create user with password provided in vars/main.yml - name: Create pamuser user: name: pamuser password: "{{ pamuser
I'm working on an Ansible playbook that uses a when condition, and I was trying to test the scenario where there is a default value specified as a play variable
I am probably missing something simple. I have the dictionary in vars.yml deploy_env: dev: schemas: year1: - main - custom ye
I am trying to run below task but it gives error. - name: Check if Schema exist shell: "psql -h {{ dbserver }} -U {{ dbuser } {{ dbname }} -c '\dt' | grep -