Most viewed questions in Ansible

0 votes
1 answer

Check for certain package with specific version exists - Ansible

Hey @Kavya, to check if a package ...READ MORE

Mar 6, 2019 in Ansible by Devika
2,631 views
0 votes
1 answer
0 votes
1 answer

ERROR! with_dict expects a dict - When creating a new keypair using Ansible

Depends on the version you're using. I'm ...READ MORE

Apr 9, 2019 in Ansible by Anshul
2,601 views
0 votes
1 answer

What is the ask_pass module in Ansible?

Hi@akhtar, Ask_pass is the control module in an ...READ MORE

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

Error saying "Failed to find required executable npm in paths"

Hey @Thomas,  Seems like those extra paths have ...READ MORE

Jan 10, 2019 in Ansible by Naina
2,587 views
0 votes
1 answer

What is Puppet equivalent of the 'ignore_failure' in Chef or the 'ignore_errors' in Ansible?

There’s no need to ignore the error ...READ MORE

Jul 17, 2018 in Ansible by shelly
2,518 views
0 votes
1 answer

How to run Ansible without hosts file?

Hey @Ruth, you can use ansible without using ...READ MORE

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

Error Message: "No handler was ready to authenticate. 1 handlers were checked. ['HmacAuthV4Handler'] Check your credentials"

Hi@akhtar, A dynamic inventory script will cache results to ...READ MORE

Oct 12, 2020 in Ansible by MD
• 95,440 points
2,494 views
+1 vote
1 answer

Set AWS credentials in boto config file

Go to your boto config file, and ...READ MORE

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

How to replace a line using lineinfile module in Ansible?

Hi@MD, You can use lineinfile module in Ansible. ...READ MORE

Sep 2, 2020 in Ansible by akhtar
• 38,230 points
2,477 views
0 votes
1 answer

How to run Ansible-Playbook in the localhost?

Hi@akhtar, To run any playbook in the local ...READ MORE

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

Ansible use cases

There are 6 main places where ansible ...READ MORE

Jan 25, 2019 in Ansible by Chester
2,428 views
0 votes
1 answer

Permission denied error while building a project using Ansible on jenkins

Your Jenkins job is running as default ...READ MORE

Apr 2, 2019 in Ansible by Aleesha
2,418 views
0 votes
1 answer

Testing server response with timeout using ansible

Got it working using wait_for and until ...READ MORE

Aug 7, 2018 in Ansible by Atul
• 10,240 points
2,410 views
0 votes
1 answer

How to switch a user per task or set of tasks?

Hi@akhtar, Ansible has a concept of privilege escalation. ...READ MORE

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

Getting numbered build artefact using ansible from jenkins

You can get the build number with ...READ MORE

Aug 20, 2018 in Ansible by ajs3033
• 7,300 points
2,335 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,323 views
0 votes
1 answer

Ansible Playbook to create a Load Balancer

Hey @Himanshu, you can try something like ...READ MORE

Mar 25, 2019 in Ansible by Jack
2,322 views
0 votes
1 answer

How to create docker volume using Ansible?

Hi@akhtar, We can create a volume docker resource ...READ MORE

Sep 20, 2020 in Ansible by MD
• 95,440 points
2,276 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,264 views
0 votes
1 answer

What is cobbler? - Ansible

Cobbler is a Linux installation server that ...READ MORE

Mar 24, 2019 in Ansible by Kyraa
2,258 views
0 votes
1 answer

ansible ssh and user module issue with edureka VM

Hi@Konakanchl, I guess you need to give your ...READ MORE

Jul 23, 2020 in Ansible by akhtar
• 38,230 points
2,251 views
0 votes
1 answer

ERROR! - None of the provided paths was usable. Please specify a valid path with --roles-path

Hi@akhtar, You are trying to list down ansible roles ...READ MORE

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

Error while running playbook consisting of roles - Ansible

You get this error because ansible was ...READ MORE

Mar 12, 2019 in Ansible by William
2,230 views
0 votes
1 answer

Getting error in ansible. The lxc module is not importable. Check the requirements

Here is what you can try. If you ...READ MORE

Jul 24, 2018 in Ansible by Atul
• 10,240 points
2,226 views
0 votes
1 answer

How to install httpd web server in remote node using Ansible?

Hi@akhtar, You need to use the package module in Ansible. ...READ MORE

Jul 30, 2020 in Ansible by MD
• 95,440 points
2,225 views
0 votes
1 answer

Playbook to create VM with managed disk - ansible with azure

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

Mar 27, 2019 in Ansible by Jobin
2,199 views
0 votes
1 answer

want to comment cron job using ansible

- ...READ MORE

Jun 18, 2020 in Ansible by Disha Khandelwal
2,198 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
1 answer

How to do SSH in EC2 instance using Ansible Playbook?

Hi@akhtar, To configure your inventory dynamically you need ...READ MORE

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

How to mount a dvd in a folder using Ansible playbook?

Hi@akhtar, Ansible has the mount module that is idempotent ...READ MORE

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

How to run an Ansible Playbook to a particular node?

Hi@akhtar, You can control the playbook from the ...READ MORE

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

Error saying "FAILED! => {"changed": false, "failed": true, "msg": "the python pymongo module is required"}"

Hey @Monish I figured what my issue ...READ MORE

Feb 9, 2019 in Ansible by Manik
2,130 views
0 votes
1 answer

Error saying "msg: unsupported parameter for module: deb"

Hey @Laksha, I think an older version ...READ MORE

Feb 1, 2019 in Ansible by Ansiha
2,123 views
0 votes
1 answer

Ansible: List all installed Apps in RedHat

Try this to get a list of ...READ MORE

Jul 13, 2018 in Ansible by ajs3033
• 7,300 points

edited Jul 13, 2018 by ajs3033 2,119 views
0 votes
0 answers
0 votes
1 answer

How do I use my static and dynamic inventory files together in an ansible playbook?

Add both your static and dynamic inventories ...READ MORE

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

How to copy files in remote system using Ansible?

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

Jul 30, 2020 in Ansible by MD
• 95,440 points
2,087 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,067 views
0 votes
1 answer

FAILED! => {"changed": false, "msg": "state is mounted but all of the following are missing: fstype"}

Hi@akhtar, You need to pass some more arguments ...READ MORE

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

Using hyphen in ansible

Hyphen - is used to specify list ...READ MORE

Jul 10, 2018 in Ansible by Kalgi
• 2,680 points
2,063 views
+1 vote
1 answer

How to deploy war file into the Websphere using ansible playbook

Hi@M, You can use the below-given example. - name: ...READ MORE

Jun 29, 2020 in Ansible by MD
• 95,440 points
2,060 views
0 votes
1 answer

Is it possible to start ec2 Windows machine and run windows command using ansible playbook?

Hi@Lakshminarayanan, Yes, you can do that. But after ...READ MORE

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

Role of subelement module in an Ansible playbook

Hey @Rahul thanks for a better question ...READ MORE

Jan 16, 2019 in Ansible by Emily
2,052 views
0 votes
1 answer

Creating non interactive ansible vault

Hey @Jolly,  You can use the --vault-password-file option for ansible-vault non-interactive ...READ MORE

Jan 29, 2019 in Ansible by Shah
2,042 views
+1 vote
1 answer

Ansible: Deleting matching IPs from hosts file using regex

Ansible notation isn't the same as YAML ...READ MORE

Jul 25, 2018 in Ansible by DareDev
• 6,890 points
2,029 views
0 votes
1 answer

How do I get an ENV variable and store it into a local variable - Ansible

Hey @Ninja, that is possible. What you ...READ MORE

Jan 24, 2019 in Ansible by Thomas
2,002 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