Running the playbook with $ ansible-playbook test-playbook.yml Getting error response ERROR! Unexpected Exception, this is probably a bug: cannot pickle 'mod
I tried to install the ansible.windows collections using "ansible-galaxy collection install ansible.windows", but I'm getting error as "Error! Unkown error whe
I'm having issues running some playbooks where I define ansible_user_ssh=root in the command line and the ssh command through ansible, returns permission denied
I'm learning Vagrant and Ansible, I'm trying to setup a local development environment for a basic flask app in ubuntu20.04 with Nginx. my vagrantfile looks like
My code in tasks/main.yml. - name: Check Istio services k8s_info: api_version: v1 kind: Service namespace: istio-system But it returns; An ex
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