Category "ansible"

Ansible cannot pickle 'module' object

Running the playbook with $ ansible-playbook test-playbook.yml Getting error response ERROR! Unexpected Exception, this is probably a bug: cannot pickle 'mod

"Msg: The module win_ping was redirected to ansible.windows.win_ping, which could not be loaded "

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

troubleshooting ansible SSH can't reach a root cause

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

How to activate python virtual environment on remote machine with ansible?

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

Cannot execute k8s module

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

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

Ansible, create list of dictionaries from list of dictionaries, with specific subkey containing dictionary

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 a process (or Kafka to be specific) on remote host with Ansible Playbook

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

Ansible include_tasks will not run when tags are specified

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

Module failed to start Ansible

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

Ansible Windows Kerberos Authentification Bad HTTP response returned from server Code 500

After configuring winRM on a windows server and filling all needed information to connect : --- ### winrm / win connection ### ansible_winrm_realm: *My AD Dom

FAILED! => {"changed": false, "msg": "apt cache update failed"} when trying to

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:

How do you list the versions of an Ansible Galaxy role using the ansible-galaxy command?

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

Nested loop with user and folder in Ansible

I have the following task: - name: Create required folders. become: true ansible.builtin.file: owner: "{{ item.key }}" group: ftp mode: '0755'

How to pass token to requirements.yaml used by ansible galaxy for installing pre-requisites

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

All combination of 2 lists in ansible

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

How to prevent Jinja2 substitution in Ansible playbook?

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" : "

Managing "nested" group in Ansible YAML inventory files

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

TypeError: 'NoneType' object is not iterable in ansible output

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

Custom Ansible module throws unsupported arguments when passing list as parameter

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