Most viewed questions in Ansible

0 votes
1 answer

How to create an ec2 snapshot using Ansible Playbook?

Hi@akhtar, You can create an EC2 snapshot from an existing ...READ MORE

Dec 4, 2020 in Ansible by MD
• 95,440 points
1,402 views
0 votes
1 answer

Running Ansible Bash profile shows messages everytime a terminal is opened

Change the bash profile to read like ...READ MORE

Jan 14, 2019 in Ansible by Cobe
1,402 views
0 votes
1 answer

How to write ansible playbook for storage health checking? Any references?

Why ansible in particular? You can use ...READ MORE

Oct 29, 2020 in Ansible by Lohith
1,397 views
0 votes
1 answer

ignore_errors : true does not work as expected

Hey @Ali,  You can use the flag ignore_errors ...READ MORE

Jan 9, 2019 in Ansible by Lisa
1,393 views
0 votes
1 answer

How to download a role from Ansible Galaxy?

Hi@akhtar, In Ansible, the role is the primary ...READ MORE

Aug 28, 2020 in Ansible by MD
• 95,440 points
1,382 views
0 votes
1 answer

Error saying no module boto3 even though I have it.

Hey @Liala, try using hosts as localhost ...READ MORE

Feb 9, 2019 in Ansible by Monish
1,368 views
0 votes
1 answer

Run Ansible adhoc commands in sequence

Hey @Thomas, by default ansible runs these ...READ MORE

Jan 14, 2019 in Ansible by Barbara
1,361 views
0 votes
1 answer

How do i get Ansible predefined variables?

There three types of variables variables gathered from ...READ MORE

Jan 24, 2019 in Ansible by Parth
1,341 views
0 votes
1 answer

Disadvantages of using Ansible Vault

There are two main disadvantages: If you lose ...READ MORE

Mar 6, 2019 in Ansible by William
1,336 views
0 votes
1 answer

Ansible playbook for a shall script

You can convert a shell script to ...READ MORE

Aug 26, 2019 in Ansible by Anjali
1,320 views
0 votes
1 answer

How to assemble files from a directory?

Hi@akhtar, Ansible has the assemble module. This module can ...READ MORE

Sep 17, 2020 in Ansible by MD
• 95,440 points
1,310 views
0 votes
1 answer

Using ansible to install applications.

Hi@Manny, Every application has some dependencies. Then only ...READ MORE

Nov 24, 2020 in Ansible by MD
• 95,440 points
1,306 views
0 votes
0 answers

Set up the necessary tools such as git, chromedriver(selenium), chromium browser(selenium) on the slave node through Ansible [closed]

Going through the Devops project. There is ...READ MORE

Feb 9, 2020 in Ansible by anonymous
• 130 points

closed Feb 14, 2020 by Sirajul 1,303 views
0 votes
1 answer

Print all boto debug and request/response message from boto and httplib

Debug Controls the level of debug messages ...READ MORE

Mar 26, 2019 in Ansible by Raymond
1,294 views
0 votes
1 answer

Error saying "Internal Error: this module does not support running commands via 'sudo'"

Hey @Syra, use the sudo directive in ...READ MORE

Feb 9, 2019 in Ansible by Monish
1,289 views
0 votes
1 answer

Install Ansible on Hp UX

Hey @Diana, You cannot use HP -UX as ...READ MORE

Jan 10, 2019 in Ansible by Niks
1,280 views
0 votes
1 answer

Using lxc_container module in ansible

This mostly happens when you've not installed ...READ MORE

Aug 10, 2018 in Ansible by DareDev
• 6,890 points
1,272 views
0 votes
1 answer

How to use conditions in Ansible-Playbook?

Hi@akhtar, Traditional programming language usually uses the if-else ...READ MORE

Aug 20, 2020 in Ansible by MD
• 95,440 points
1,270 views
0 votes
1 answer

How do i tie Ansible's inventory to cobbler?

To tie Ansible’s inventory to Cobbler, copy this ...READ MORE

Mar 24, 2019 in Ansible by Aleesha
1,265 views
0 votes
1 answer

How do I add ssh authorized keys in ansible playbook?

Hey @kailash use the authorized_key plugin that ...READ MORE

Feb 12, 2019 in Ansible by Kyra
1,260 views
0 votes
1 answer

Is it possible to run commands on ansible host?

If you just trying to run a ...READ MORE

Jan 10, 2019 in Ansible by Vijay
1,255 views
0 votes
1 answer
0 votes
1 answer

Unable to install packages through Ansible

Hi, Try to ping your all nodes. There ...READ MORE

Jul 15, 2020 in Ansible by MD
• 95,440 points
1,236 views
0 votes
1 answer

Failed to mkdir while creating a handler directory - Ansible

Hey @Ali, try running it as a ...READ MORE

Mar 14, 2019 in Ansible by Bob
1,236 views
0 votes
1 answer

Ansible Playbook for Creating a VM with OS and multiple data managed disks

Hey @Ammie, Try a playbook something like ...READ MORE

Mar 27, 2019 in Ansible by Stark
1,220 views
0 votes
1 answer

View the encrypted file without decrypting - Ansible Vault

Hey @Laksha, you can view the file ...READ MORE

Mar 6, 2019 in Ansible by William
1,219 views
0 votes
1 answer

What are Action plugins in Ansible?

Action plugins work with the modules to ...READ MORE

Feb 19, 2019 in Ansible by Jobin
1,210 views
0 votes
1 answer

How do i set multiple authorized keys to my ansible playbook?

Try this: - name: Set up multiple authorized ...READ MORE

Feb 12, 2019 in Ansible by John
1,206 views
0 votes
1 answer

Error while copying files using ansible role.

Add the following as an argument to ...READ MORE

Mar 14, 2019 in Ansible by Yesha
1,204 views
0 votes
2 answers

Error while creating resource group on Azure using Ansible

Please check you indentation, remove all spaces ...READ MORE

Mar 17, 2020 in Ansible by Shrikant Yerge
1,193 views
0 votes
1 answer

Use cases of modernizing and automating workflow

Of course automation is being used everywhere and ...READ MORE

Jan 25, 2019 in Ansible by Wong
1,179 views
0 votes
1 answer

How to make every machine password less SSH in Ansible?

Do have access to all 1000 machines? ...READ MORE

Oct 30, 2020 in Ansible by Anil
1,174 views
0 votes
1 answer

Delete an object from a bucket - ansible playbook

You have to use the following task ...READ MORE

Aug 26, 2019 in Ansible by Hari
1,163 views
0 votes
1 answer

aws_ssm module in Ansible

According to the official docs, this module ...READ MORE

Mar 24, 2019 in Ansible by Yesha
1,158 views
0 votes
1 answer

Add a node in Ansible

Follow these steps @Ruth: Generate ssh key ssh-keygen Check the ...READ MORE

Jan 8, 2019 in Ansible by Haider
1,154 views
0 votes
1 answer

ansible playbook that installs or uninstalls IBM Installation Manager

have a look at this ansible-playbook. It ...READ MORE

Oct 30, 2019 in Ansible by Yesha
1,147 views
0 votes
1 answer

How to create a key pair on AWS using Ansible-Playbook?

Hi@akhtar, You can find the ec2_key module in ...READ MORE

Aug 12, 2020 in Ansible by MD
• 95,440 points
1,144 views
0 votes
1 answer

Ansible playbook to delete multiple S3 buckets

Hey @Hari, you can use the following ...READ MORE

Aug 30, 2019 in Ansible by Chris
1,142 views
0 votes
1 answer

Ansible iterate over hash with condition

Your when statement is wrong. you either split ...READ MORE

Jul 23, 2018 in Ansible by Kalgi
• 52,360 points
1,131 views
0 votes
1 answer

"FATAL: all hosts have already failed -- aborting" - Ansible error

Hey @Anju, you could change your second ...READ MORE

Feb 7, 2019 in Ansible by Sri
1,130 views
0 votes
1 answer

Define variables in Ansible Playbook

Variable names should be letters, numbers, and ...READ MORE

Jan 24, 2019 in Ansible by Jinha
1,128 views
0 votes
1 answer

Playbook to get my current IP - Ansible and AWS

Hey Komal, that's pretty simple. Try this: - ...READ MORE

Mar 24, 2019 in Ansible by Aarohi
1,112 views
0 votes
1 answer

obtain information about a file in windows using ansible playbook

Hey @Travis, you can use the win_stat ...READ MORE

Jun 11, 2019 in Ansible by Drake
1,110 views
0 votes
1 answer

How to create an ECS cluster using Ansible Playbook?

Hi@akhtar, You can create or terminate ECS clusters. ANsible has ...READ MORE

Dec 4, 2020 in Ansible by MD
• 95,440 points
1,098 views
0 votes
1 answer

Execute ansible playbook periodically

You could use include_role, according to the ...READ MORE

Jan 17, 2019 in Ansible by Kevin
1,097 views
0 votes
1 answer

How to create a variable in Ansible Playbook?

Hi@akhtar, Variable in playbooks are very similar to using variables in ...READ MORE

Aug 2, 2020 in Ansible by MD
• 95,440 points
1,073 views
0 votes
1 answer

Ansible not loading variables properly

group_vars/all/main.yml: symfony: env: "{{ ENV ...READ MORE

Feb 4, 2019 in Ansible by anonymous
1,073 views
0 votes
1 answer

Ansible task to read definition file from the Ansible controller file system.

Hey, you can use the k8s module ...READ MORE

Jun 11, 2019 in Ansible by Babita
1,069 views
0 votes
1 answer

ping from a docker container to a PBX sip server which is lying in the same lan as the host machine

Hey @Laksha, Look at how you're starting ...READ MORE

Feb 1, 2019 in Ansible by Anisha
1,065 views
0 votes
1 answer

Running to plays in one playbook

The inventory file is loaded before a ...READ MORE

Jun 25, 2018 in Ansible by ajs3033
• 7,300 points
1,058 views