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 can I make Ansible Playbook to Continue after IP Change?

I have a playbook which configures Static IP Address and reboots the Server. However, the playbook is resulting in an error. Even the following code also doesn't seems working - name: Creating Interface Configuration using JINJA2 Temlate …
UME
  • 111
  • 2
0
votes
1 answer

How to replace shell module with command module in Ansible?

I need one small help. In below example I need to replace shell with command module. But I am confused as command is not working with pipe. So please give me the solution of this task. E.g: - name: Get the version become: true run_once: true …
0
votes
0 answers

Virtual Media it's not ejected on the Dell iDRAC9 after the installation using Ansible it's completed

I have this code but unfortunately it's not ejecting the ISO after installing the CentOS and I don't know what to do, can someone please give me a hint on how I can treat this? I can't use Ansible modules, I'm forced to use only the Redfish…
bicanul123
  • 101
  • 2
0
votes
1 answer

How can I boot using Ansible on an Dell iDRAC9 server from an iso that's located on a remote server?

I have this playbook that what I'm trying to do it's to install CentOS using Ansible and Redfish, I don't want to use any modules, I'll install the CentOS on multiple Dell iDRAC9 servers and I'm having one issue: 2)After the ISO it's mounted, the…
bicanul123
  • 101
  • 2
0
votes
1 answer

Generate SSL certificate with let's encrypt (dns-01 challenge)

I'm trying to generate an SSL certificate with Ansible for *.rasp.example.com and rasp.example.com. I already have a "working" solution (No errors when deploying), but when I try to compare it with certbot, I have some csr, crt, key whereas certbot…
tholeb
  • 31
  • 1
  • 6
0
votes
2 answers

Ansible 'command' task missing 'stdout' for 'nginx' config verification

After deploy new configuration of Nginx, I would like to verify configuration before Nginx handler for reload is applied. This is output of command line: nginx -t && echo $? nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx:…
dorinand
  • 319
  • 2
  • 5
0
votes
2 answers

Ansible :: Am I not using the `cisco.ios.ios_facts` module?

I'm trying to build a simple POC ansible playbook that logs into a Cisco router and pulls the config. About my environment: My Ubuntu is Ubuntu 18.04.5 LTS My Ansible is version ansible 2.10.7 (Python ver 3.6.9) My Ansible-Playbook is version…
Pete
  • 131
  • 6
0
votes
2 answers

Ansible playbook: download a file from a repository only if it was not changed on a target machine

I am setting up an autoinstall environment with PXE boot. To install Linux this way, one basically needs to download linux and initrd.gz files which are buried deeply in the repository structure and also supply a pxelinux and/or pxegrub…
Nikita Kipriyanov
  • 10,947
  • 2
  • 24
  • 45
0
votes
1 answer

Ansible copy overlays

Given the tree on the controller shell> tree /tmp/test/ /tmp/test/ ├── override │   ├── dir1 │   │   └── file_B.txt │   ├── file_2.txt │   └── file_4.txt └── template ├── dir1 │   ├── file_A.txt │   └── file_B.txt ├── file_1.txt …
Vladimir Botka
  • 5,138
  • 8
  • 20
0
votes
0 answers

Store ansible vault password in azure keystore

At my company we use Azure cloud services. For our local department we want to setup a set of Linux servers. These servers are used to form a test setup. To setup and maintain these servers we chose to use Ansible. To store secrets such as login…
Jan Jaap
  • 101
0
votes
2 answers

How can I skip an async task that is already running?

(Credit @Kerrick Staley) I would like to create an Ansible playbook with an async task followed by an async_status task that lets me do the following: I run the playbook on my laptop. It starts the async task in the background and starts polling it…
Vladimir Botka
  • 5,138
  • 8
  • 20
0
votes
2 answers

In ansible, with win_shell (Powershell), how to force the job status into failed

I'm new to Ansible. I created a playbook that uses PowerShell to reset your password of your admin account. The script has a check that only resets the password IF the account is enabled. When the account is disabled, it spits out a write-host…
Snak3d0c
  • 101
  • 4
0
votes
1 answer

Ansible file check and send mail

I am trying to create file check using ansible . basically in specific folder every day some job copy some files. I want to receive an email if there are no new files. I try something like this : --- - name: Check if file exist and send mail …
0
votes
0 answers

Using vault password with ansible-runner

I am looking for a way to use ansible-vault password required to run a playbook ran with ansible-runner. I did find some doc and advices like this one (which is a pretty old post and I am not quite sure that I can rely on what's advised here) or…
Lou
  • 1
  • 2
0
votes
2 answers

AWX SSH connection not establishing when running playbook

I am trying to run my first playbook. Running AWX on CentOS8,trying to connect to remote device using SSH. On my remote device I have run ssh-genkey on my device and added the .pub key to authorized_keys file. I have also taken the .pub private key…