Most answered questions in Ansible

+1 vote
4 answers

Pass variable to ansible playbook through command line

ansible-playbook test.yml --extra-vars "arg1=${var1} arg2=${var2}" Use is like ...READ MORE

May 7, 2019 in Ansible by Bobin
13,962 views
0 votes
3 answers

Error saying "ERROR: problem running ansible_hosts --list ([Errno 8] Exec format error)" while running ansible playbook

Also, remove the execute permission for the ansible ...READ MORE

Feb 4, 2019 in Ansible by Pam
5,252 views
+1 vote
3 answers

Error message “Failed to connect to the host via ssh” while running ping command on host machines using Ansible

I hadn't created the ssh connection between ...READ MORE

Apr 23, 2019 in Ansible by Lavanya
19,727 views
0 votes
2 answers

ERROR! Unexpected Exception, this is probably a bug: HTTP Error 400: Bad Request

When you get the 400 number, that ...READ MORE

Feb 9, 2022 in Ansible by Soham
• 9,700 points
1,992 views
0 votes
2 answers

How to create a directory in remote nodes using Ansible-Playbook?

You can read install and setup apache ...READ MORE

Aug 23, 2020 in Ansible by anonymous
• 160 points
3,624 views
–1 vote
2 answers

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

- hosts: all vars : ...READ MORE

Dec 31, 2020 in Ansible by Onkar
• 140 points

edited Dec 31, 2020 by MD 2,841 views
0 votes
2 answers

Ansible task to list all pods from any k8s namespace

Here is a more complete answer for ...READ MORE

Feb 6, 2020 in Ansible by scatat
6,276 views
0 votes
2 answers

Create k8s namespace using ansible

You can also create a kubernetes namespace ...READ MORE

Jun 11, 2019 in Ansible by Nasser

edited Jun 11, 2019 6,716 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,178 views
0 votes
2 answers

Ansible error while ansible -m ping all

It looks like ansible may be installed ...READ MORE

Mar 18, 2019 in Ansible by Vince
2,847 views
0 votes
2 answers

Check is a package exists - Ansible

Hey There, @here is an example for your ...READ MORE

May 6, 2020 in Ansible by Rajat
• 160 points
7,580 views
0 votes
2 answers

How to enable Inventory Cache plugin in Ansible?

Adding to @Farookh's answer, if the inventory ...READ MORE

Feb 20, 2019 in Ansible by Shalaka
2,058 views
0 votes
2 answers

How to create MySQL tables using Ansible?

--- - hosts: dbserver   tasks:    - name: create a table ...READ MORE

Mar 19, 2019 in Ansible by Ankit Tyagi
7,426 views
0 votes
2 answers

Encrypt a single variable using ansible Vault

Adding to @Zunaid's answer, this can also ...READ MORE

Jan 29, 2019 in Ansible by Sid
2,320 views
0 votes
2 answers

Error saying "ImportError: No module named yaml"

actually this related python pckage in order ...READ MORE

Jul 18, 2020 in Ansible by shivanand
16,712 views
+1 vote
2 answers

[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'

Hey @Sitara,   I just found it is because ...READ MORE

Jan 22, 2019 in Ansible by Naina
21,560 views
0 votes
2 answers

Error saying "Extraneous options or arguments" when trying to run an ansible playbook

ERROR! Extraneous options or arguments READ MORE

May 30, 2019 in Ansible by anonymous
4,352 views
0 votes
2 answers

Execution of Ansible playbook now reflecting any changes

Hey @Moana, you playbook is missing the ...READ MORE

Jan 17, 2019 in Ansible by Sameer
548 views
+1 vote
2 answers

message saying "Another app is currently holding the yum lock; waiting for it to exit..." when trying to install Ansible

Hi, I may not sure about the answer ...READ MORE

Jan 24, 2020 in Ansible by vivek
• 530 points
2,260 views
0 votes
2 answers

How do i install Ansible using virtualenv

Adding to @Mohit's answer,  For CentOS and RHEL: sudo ...READ MORE

Jan 10, 2019 in Ansible by Dikinson
5,203 views
+1 vote
2 answers

What is the difference between ansible playbook and roles?

Hi, Roles: Roles containing certain vars_files, tasks, and handlers ...READ MORE

Jan 21, 2020 in Ansible by vivek
• 530 points
21,021 views
0 votes
2 answers

Control machine requirements for Installing Ansible

Ansible can be run from any machine ...READ MORE

May 13, 2019 in Ansible by anonymous
1,498 views
0 votes
2 answers

How do you stop Ansible from creating .retry files in the home directory?

[defaults] ... retry_files_enabled = True # Create them ...READ MORE

Apr 5, 2019 in Ansible by anonymous
2,935 views
+1 vote
2 answers

Running ansible command on a single server when it is deployed to multiple servers

You can try the run_once attribute: Example from ...READ MORE

Jun 14, 2018 in Ansible by DareDev
• 6,890 points
2,168 views
0 votes
2 answers

ansible-command not found

Use some other variable instead of PATH. READ MORE

Apr 23, 2019 in Ansible by Vismaya
10,374 views
0 votes
2 answers

Issue creating AWS VPC with Ansible

You can use the details given in ...READ MORE

Aug 16, 2018 in Ansible by Priyaj
• 58,090 points
931 views
0 votes
1 answer

I could install Git, can u please explain how to set up chromedriver(selenium), chromium browser(selenium) on the slave node through Ansible

Hi@Vinodkumar, Did you go through the related question ...READ MORE

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

##[error]Command failed with errors on Ansible machine

Hi@Vicky, By default, if one task fails, then ...READ MORE

Dec 17, 2020 in Ansible by MD
• 95,440 points
3,499 views
0 votes
1 answer

Can we use Ansible and Rundeck together, or using either one is enough?

Hi@akhtar, It depends on your requirement. According to ...READ MORE

Dec 16, 2020 in Ansible by MD
• 95,440 points
1,480 views
+1 vote
1 answer

Ansible to rename a file if it exists

Hi@Jp, What output you are getting? Your playbook ...READ MORE

Dec 14, 2020 in Ansible by MD
• 95,440 points
3,532 views
0 votes
1 answer

How to delete an ECS Cluster using Ansible Playbook?

Hi@akhtar, An Amazon ECS cluster is a logical grouping of ...READ MORE

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

How to create ECS service on VPC network using Ansible Playbook?

Hi@akhtar, An Amazon ECS service enables you to run and ...READ MORE

Dec 4, 2020 in Ansible by MD
• 95,440 points
701 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,077 views
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,384 views
0 votes
1 answer

How to copy an AMI in a different region using Ansible Playbook?

Hi@akhtar, Ansible has one module to copy AMI ...READ MORE

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

How to remove an S3 bucket using Ansible playbook?

Hi@akhtar, You can create or remove an S3 ...READ MORE

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

How to create a simple S3 bucket on Ceph Rados Gateway using Ansible Playbook?

Hi@MD, Ansible has one module that can create ...READ MORE

Dec 4, 2020 in Ansible by akhtar
• 38,230 points
1,019 views
0 votes
1 answer

How to create an encrypted bucket in AWS using Ansible Playbook?

Hi@akhtar, Sometimes it is required to encrypt the ...READ MORE

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

How to create an S3 bucket using Ansible Playbook?

Hi@akhtar, Ansible has a module that can create ...READ MORE

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

How to install python package using Ansible playbook?

Hi@akhtar, Ansible has a pip module to install ...READ MORE

Dec 2, 2020 in Ansible by MD
• 95,440 points
3,966 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,291 views
0 votes
1 answer

I am having issues installing basic packages using ansible

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

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

How to write ansible playbook to setup ubuntu workstation and install any updates on it

Hi@Shashi, Ansible has one module named ec2. This is ...READ MORE

Nov 19, 2020 in Ansible by MD
• 95,440 points
968 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,164 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,383 views
0 votes
1 answer

Can I limit the execution of a playbook on selected clients?

Create a group in the inventory file ...READ MORE

Oct 23, 2020 in Ansible by Varshitha
579 views
0 votes
1 answer

Write playbook to apply condition date wise comparison

Hi, It depends on your use case. For ...READ MORE

Oct 21, 2020 in Ansible by MD
• 95,440 points
884 views
0 votes
1 answer

Script for websphere app server restart based on user request.

Hi@Saurabh, You can use the service module to ...READ MORE

Oct 19, 2020 in Ansible by MD
• 95,440 points
883 views
0 votes
1 answer

How to configure the Nginx server in AWS with Ansible Playbook?

Hi@akhtar, To configure the Nginx server in AWS, ...READ MORE

Oct 12, 2020 in Ansible by MD
• 95,440 points
2,796 views