Questions tagged [ansible]

Ansible is an open-source software platform for configuring and managing computers. It combines multi-node software deployment, ad-hoc task execution, and configuration management.

Ansible is an open-source software platform for configuring and managing computers. It combines multi-node software deployment, ad-hoc task execution, and configuration management. It manages nodes over SSH and does not require any additional remote software to be installed on them. Modules work over JSON and standard output and can be written in any programming language. The system uses YAML to express reusable descriptions of systems.

The platform was created by Michael DeHaan, the author of the provisioning server application Cobbler and co-author of the Func framework for remote administration. It is included as part of the Fedora distribution of Linux, owned by Red Hat inc., and is also available for Red Hat Enterprise Linux, CentOS and Scientific Linux via Extra Packages for Enterprise Linux (EPEL) as well as other operating systems. Ansible was commercially supported and sponsored by AnsibleWorks. Since October 2015 Ansible is owned by RedHat.

It was named by DeHaan after the fictional instantaneous hyperspace communication system featured in Orson Scott Card's Ender's Game.

1762 questions
0
votes
0 answers

How to import all projects defined in a metadata.yml file?

This is my first foray into anything AWX/Ansible, so please be gentle :) I've set up a new AWX instance in Kubernetes (using the AWX Operator), and am trying to import our existing job-templates from an old instance (that I did not set up, nor have…
Sagar
  • 534
  • 3
  • 7
  • 21
0
votes
0 answers

k8s cron job using helm chart and docker

Two Helm chart for managing db cron jobs and monitoring cron jobs separately . Which k8s components can i use ? as k8s deprecated CronJob kind from v1.25, https://kubernetes.io/docs/reference/using-api/deprecation-guide/#v1-25 . Please share…
0
votes
1 answer

How to force Ansible 'shell' task to change state with 'changed_when' condition?

I am running script with Ansible task which installs some repositories and my goal is to show changed state when running change mode to notify, that script will run if check mode will not be activated. My first task is to check existence of this…
dorinand
  • 319
  • 2
  • 5
0
votes
1 answer

Ansible: escaping special characters in a regexp loop

I been having problems getting this to work, can anyone provide any insights? - name Configuring rsyslog.conf playbook hosts: "{{host}}" tasks: - name: Configuring rsyslog.conf lineinfile: path:…
Gene
  • 15
  • 4
0
votes
1 answer

Monit with Ansible - invalid mail format '#015'

I've been trying to install monit with an ansible playbook. I'm changing the monitrc file and when the playbook restarts monit, I get : Jun 8 08:00:30 myserver monit[1857462]: Starting daemon monitor: monit Jun 8 08:00:30 myserver monit[1857465]:…
Ror
  • 321
  • 3
  • 16
0
votes
1 answer

UNREACHABLE! => {"changed": false, "msg": "Data could not be sent to remote host

I have SSH access for a particular server, but when I am trying to run the playbook for that server. I am trying to do the deployment for that server but I'm facing an issue. fatal: [lapp999.corp.com]]: UNREACHABLE! => {"changed": false, "msg":…
Varun K M
  • 13
  • 4
0
votes
1 answer

Permission denied (publickey) error when managing GCP machine via Ansible (running on GCP VM) despite successful SSH connection

I deployed two machines to GCP via Terraform. Let's call them control-host and target-host. I want to manage the target-host via Ansible installed on the control-host. Unfortunately, I keep getting the following error no matter what I…
0
votes
1 answer

how to give permissions to postgres_exporter user with ansible?

I need to give some rights to my user postgres_exporter to scrape metrics from postgres to grafana I can do that on each server by sudo -iu postgres psql -c 'GRANT pg_read_all_settings TO postgres_exporter;' sudo -iu postgres psql -c 'GRANT EXECUTE…
a1dude
  • 11
  • 3
0
votes
1 answer

Setting mysql using ansible in ubuntu remote machine

I have written one ansible playbook for installing MySQL server in ubuntu remote machine but is not working here is the yaml code --- - name: setting mysql in ubuntu hosts: web01 become: yes tasks: - name: install mysql apt: …
0
votes
1 answer

You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable

My environment: # cat /etc/debian_version 11.7 # ansible-playbook --version ansible-playbook [core 2.13.1] config file = None configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible…
alexus
  • 13,112
  • 32
  • 117
  • 174
0
votes
1 answer

Error tryng to retreive mount points and device of an host with ansible

Hi i'm trying to retreive some infos about hosts with ansible about mount points and device attached and a got an error . about the list object.. - name : Inventory hosts: localhost tasks: - name: display infos from host …
Fluki
  • 3
  • 1
0
votes
1 answer

ansible backups for cisco asa devices: ERROR: % Invalid input detected at '^' marker

I have been tasked with backing up all of our network devices, so natuarally I chose ansible. I am no expert but I sure need help on this one! I have tried everything under the moon and cannot figure it out, neither has chat-gpt. The ansible ping…
dirman
  • 3
  • 2
0
votes
0 answers

Can't connect from Debian VM to Windows Server VM

I've got a problem while trying to configure my Ansible server to connect to a Windows host using ssh keys. When I try this command : ansible win -m win_ping I never got an answer, even after few minutes. But, when I try to debug using -vvv, I don't…
0
votes
1 answer

Extract a whole dictionary from a list of dictionaries by value

I need to extract a whole dictionary from a list of dictionaries based on a value. "msg": [ { "duplicate_key": "in dict_name_one", "KEY_1_dict_name_one": "VALUE_1_dict_name_one", "KEY_2_could_be anything":…
0
votes
1 answer

Return Values from Ansible Role Tasks in a loop are only registered for the last item

I have a role ovirt_vm_add_disk_role that creates a new disk for a VM with ovirt_disk module. In that role I register the variable disk_info which contains the results of the ovirt_disk module: - name: "Update disk information" ovirt_disk: …
TZar
  • 46
  • 2