Most viewed questions in Ansible

0 votes
1 answer

Reset unreachable hosts - Ansible

If you try using the host that ...READ MORE

Feb 7, 2019 in Ansible by Yesha
2,005 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
2,000 views
0 votes
1 answer

How to filter IP address of remote system in Ansible?

Hi@akhtar, You can use the filter keyword in your ...READ MORE

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

Trying to execute bash script using Ansible one one node

You could make your task an asynchronous action by ...READ MORE

Jan 29, 2019 in Ansible by Kavya
1,983 views
0 votes
1 answer

FAILED! => {"changed": false, "msg": "Parameter 'description' is required."}

Hi@akhtar, You got this error because you did ...READ MORE

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

SSH encountered an unknown error during the connection - Ansible Error

I think you have not configured your ...READ MORE

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

How to create a group using Ansible Playbook?

Hi@akhtar, You can find one module named group ...READ MORE

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

How to configure yum using Ansible Playbook?

Hi@akhtar, You need to use the yum_repository module ...READ MORE

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

Error: Failed to get data from the API server - when trying to create a new role structure using ansible galaxy

Check your python version. It should be ...READ MORE

Mar 14, 2019 in Ansible by Haider
1,910 views
0 votes
1 answer

Error saying "ERROR! Unexpected Exception: 'module' object has no attribute '_vendor'"

Ansible is highly dependant on the python ...READ MORE

Jan 28, 2019 in Ansible by Varsha
1,882 views
0 votes
1 answer

Install multiple roles - Ansible

You'll need a requirements.yaml file which will ...READ MORE

Jan 10, 2019 in Ansible by Rishi
1,882 views
0 votes
1 answer

How to login to Ansible Galaxy from command line?

Hi@akhtar, To login to Ansible Galaxy, you need ...READ MORE

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

Run bundle install inside rvm - Ansible roles

Example config installing ruby system-wide ripped right ...READ MORE

Mar 13, 2019 in Ansible by Kim
1,813 views
0 votes
1 answer

Variables needed to write ansible playbook to install Mysql and mariadb on ubuntu

You need three main variables, one to ...READ MORE

Oct 24, 2019 in Ansible by Bob
1,802 views
0 votes
1 answer

Boto config file on Linux

Hey @Hari, your boto config file could ...READ MORE

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

Calico wait for etcd error when creating kubernetes cluster using kubespray

Hey @Kanika, You need to open two ...READ MORE

Jan 22, 2019 in Ansible by Jinha
1,786 views
0 votes
1 answer

How to set dynamic host inventory file for docker in Ansible?

Hi@akhtar, In a configuration especially a container setup such ...READ MORE

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

Can Ansible replace Jenkins?

Ansible is a configuration management tool whereas ...READ MORE

Nov 15, 2019 in Ansible by Eric
1,774 views
0 votes
1 answer

How to use an URL in Ansible Playbook?

Hi@akhtar, You can use the get_url module in ...READ MORE

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

Pass multiple password files while running ansible playbook

Hey @Neha, you can pass your password ...READ MORE

Mar 6, 2019 in Ansible by Yesha
1,766 views
0 votes
1 answer

How to launch an EC2 instance using Ansible Playbook?

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

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

Ansible playbook giving an error - all hosts have already failed - aborting

Hey @Ruth, you seem to have made ...READ MORE

Jan 17, 2019 in Ansible by Sameer
1,740 views
0 votes
1 answer

Ansible playbook to start or stops a Liberty Profile server in WebSphere deployment

Check this out: - name: Start liberty_server: ...READ MORE

Oct 30, 2019 in Ansible by Tanya
1,736 views
0 votes
1 answer

Error saying "No handler was ready to authenticate. 1 handlers were checked"

You are mixing underscore and hyphen. cat /etc/ansible/ec2-vars/te ...READ MORE

Mar 13, 2019 in Ansible by Kim
1,736 views
0 votes
1 answer

How to copy folders using url in windows in ansible?

Hi@akhtar, You can find the win_get_url module. This ...READ MORE

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

How to import files in Ansible-Playbook?

Hi@akhtar, You can use vars_files keyword in Ansible. ...READ MORE

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

fatal: [localhost]: FAILED! => {"changed": false, "msg": "Either region or ec2_url must be specified"}

Hi@akhtar, You got this error because you did ...READ MORE

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

what is the difference between tags and delegate_to in ansible?

Hey @Rajendra, If you wish to perform ...READ MORE

Sep 24, 2019 in Ansible by Kalgi
• 52,360 points
1,661 views
0 votes
1 answer

How do I see all the inventory variables defined for my host?

Hey @Junaid, You can see all the ...READ MORE

Jan 31, 2019 in Ansible by Mahir
1,643 views
0 votes
1 answer

Error saying "ConnectionError(ProtocolError('Connection aborted.', error(2, 'No such file or directory')),)"

Hey @Nisha, you get this error when ...READ MORE

Feb 1, 2019 in Ansible by Kunal
1,634 views
0 votes
1 answer

Become : yes is not working while running ansible playbook from Jenkins pipeline job

Hi, Jenkins will not able to run the ...READ MORE

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

Password prompt everytime I run a playbook is annoying

So Ansible provides a feature called vault ...READ MORE

Mar 7, 2019 in Ansible by William
1,575 views
0 votes
1 answer

Error saying "Invalid input (privileged mode required)" - Ansible

The task that generated this error requires to enable mode ...READ MORE

Mar 6, 2019 in Ansible by Yogesh
1,574 views
0 votes
1 answer

Check status of an operation running in the background - Ansible

Hey @Neel, According to the documentation, Long running ...READ MORE

Mar 6, 2019 in Ansible by Yesha
1,548 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,521 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,513 views
+2 votes
1 answer

getting error while installing ansible on redhat8

Solution is to update epel.  https://access.redhat.com/solutions/3358 Try and let ...READ MORE

Dec 4, 2019 in Ansible by Raveendiran
• 980 points
1,490 views
0 votes
1 answer

Error saying "No packages marked for update" when trying to install ansible using yum

If you're just trying to upgrade to ...READ MORE

Jan 14, 2019 in Ansible by Nippun
1,471 views
0 votes
1 answer

FAILED! => {"changed": false, "msg": "This module has been removed. The module documentation for Ansible-2.3 may contain hints for porting"}

Hi@akhtar, You are using the docker module. This ...READ MORE

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

Use parameters stored in aws parameter store in ansible playbook

Use aws_ssm module for this purpose: - name: ...READ MORE

Jul 23, 2019 in Ansible by Vishnu
1,432 views
0 votes
1 answer

lookup_plugins directory in Ansible

Hey @Ruth, check one of these places: check ...READ MORE

Jan 29, 2019 in Ansible by Kavya
1,429 views
0 votes
1 answer

Error output difficult to read - Ansible

Hey @Lisha, you can use the callback ...READ MORE

Jan 17, 2019 in Ansible by Sameer
1,423 views
0 votes
1 answer

How to connect docker nodes with ansible master ?

Hi@akhtar, You need a running container first, and ...READ MORE

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

Can I upgrade Ansible with available modules of ansible?

Ansible can upgrade itself using pip module ...READ MORE

Feb 8, 2019 in Ansible by Dee
1,420 views
0 votes
1 answer

How do I install Ansible on windows?

Hi Neha, you cannot have an entire ...READ MORE

Feb 28, 2019 in Ansible by Kavya
1,418 views
0 votes
1 answer

Playbook to gather ec2_asg_facts AWS auto scaling group

Hey @Neya, try something like this: --- - name: ...READ MORE

Apr 2, 2019 in Ansible by Pam
1,417 views
0 votes
1 answer

Filter lists by attributes - Ansible

Filter the dicts using selectattr_filter in combination with ...READ MORE

Jan 14, 2019 in Ansible by Haider
1,413 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,413 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,409 views