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
1 answer

Ansible: Loop over the items of a host list and execute role

I have an application composed of micro modules distributed on multiple hosts. inventory: [moduleA_hostgroup] host1 host2 [moduleB_hostgroup] host2 host3 [moduleC_hostgroup] host1 host4 Each module has specific location and configuration files. I'd…
coquinho
  • 3
  • 2
0
votes
1 answer

Playbook to extract hosts from /etc/hosts

I need help extracting hosts informations from /etc/hosts file and exporting that content to a predefined file. I created a Ansible's Playbook to this task, but the content is not written on the output file. Do you guys, can help me,…
0
votes
0 answers

Alternatives to ansible-pull

I have a number of systems that need configuration/updates, while being offline for long periods of time. They therefore need to contact a configuration system on boot, and in regular intervals and apply their updates in a pull fashion. I have some…
relet
  • 101
  • 4
0
votes
0 answers

Cannot combine looped variables

I have well over a dozen jobs within AWX, but given the following code only returns one job name: - name: Set job_name(s) as facts for limiting job rename set_fact: job: "{{ job_name|default([]) + [ { 'name': item['name'] } ] }}" …
BrillCom
  • 139
  • 2
  • 9
0
votes
1 answer

Rolling updates on Ansible using throttle

I am trying to set up rolling OS updates on linux systems using Ansible. My intention is to update the systems together but then reboot individually using the code below which includes a block section in which throttle: 1 is specified. - when:…
0
votes
0 answers

Ansibe to install/update Zabbix agents on hosts listed in Zabbix server

I have a lot of VMs set up by hands during years, so each VM is a bit unique (so to say, you know). Zabbix agents on these VMs are of different versions and maybe differently configured. The idea is to use Ansible to install commonly configured…
Alexander
  • 774
  • 2
  • 11
  • 20
0
votes
1 answer

Setting apache2.conf variables with Ansible issue

i have a simple ansible playbook that sets two ini variables. - name: set Apache timeout community.general.ini_file: path: /etc/apache2/apache2.conf section: null option: Timeout value: 900 state: present exclusive: true -…
Aidvi
  • 46
  • 5
0
votes
0 answers

Can I Upload SSH Keys to Azure Keyvault using azcollection?

I'm writing an Ansible script to perform key rotation across my company's Linux estate. We use Azure as a cloud platform and I'm looking to store a backup copy of the public and private keys in Azure Keyvault. The Linux estate itself is hosted on…
0
votes
1 answer

Is there any way to auto upgrade Ansible roles?

Is there any way to upgrade Ansible version along with the playbooks which are written in older version of Ansible. Any kind of script which would read all the modules in the playbooks and recommend / update them to new versions
safae
  • 1
0
votes
1 answer

AWX execution environment pip error ResolutionTooDeep: 2000000

I've been building an execution environment for my awx for a while now and never got any kind of problem, but now I am trying to recreate the same EE I created 1 month ago, and it does not work anymore. It used to take just 15 minutes to build the…
Jose
  • 21
  • 1
  • 2
0
votes
0 answers

Ansible SSH From A -> B -> C using SSH Config on B

There is a very similar question to what I'm asking at SSH from A through B to C, using private key on B That question does have a solution that works for me, which is ssh -t B ssh C However I've failed to convert this to something usable by…
mickadoo
  • 101
  • 2
0
votes
1 answer

Ansible having an unhandled exception occurred while templating with lookup function

I'm currently building a playbook to test if some conf files are existing and then check the contents. Files are the following /etc/resolv.conf - then check if nameservers are well configured /etc/systemd/timesyncd.conf - check if something has…
motorbass
  • 303
  • 2
  • 12
0
votes
1 answer

How to properly manage Ansible regex for network device

I'm currently testing to retrieve firmware version lists on HP/Aruba switches using arubanetworks.aos_switch collection. Basically i'm just doing : collections: - arubanetworks.aos_switch tasks: - name: Launching "show flash" CLI …
motorbass
  • 303
  • 2
  • 12
0
votes
1 answer

EdgeOS Ansible Issues

I'm getting the following when trying to run a playbook using the edgeos_commandmodule: An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ansible.module_utils.connection.ConnectionError: ssh connection…
Brian Lamb
  • 59
  • 1
  • 4
0
votes
0 answers

Ansible Playbook

I'm trying to run a playbook with to upgrade the latest firmware on a few edge routers on my network: - name: Update External ERX with latest firmware hosts: externaledgerouters remote_user: BudAdmin tasks: - name: Update ERX Firmware …
Brian Lamb
  • 59
  • 1
  • 4