Most answered questions in Ansible

0 votes
1 answer

Execute ansible playbook on a docker container

Hey @Ram, you could use a dockerfile ...READ MORE

Jan 22, 2019 in Ansible by Vedant
5,628 views
0 votes
1 answer
0 votes
1 answer

Error saying " mapping values are not allowed in this context" while executing an ansible playbook

Hey, @Nishit seems like you've made a ...READ MORE

Jan 21, 2019 in Ansible by Emily
15,462 views
0 votes
1 answer

Is it possible to run an Ansible Playbook in python script?

Hey @Cerci, Of course its possible. You ...READ MORE

Jan 17, 2019 in Ansible by Nicolas
15,076 views
0 votes
1 answer

Is it possible to run a playbook with a crontab?

Ofcourse you can run ansible playbook with ...READ MORE

Jan 17, 2019 in Ansible by Yesha
4,595 views
0 votes
1 answer

Ansible playbook with jenkins not working

When you execute the playbook under Jenkins, ...READ MORE

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

Execute a command using ansible playbook

Hey @Reshma, You can use the URI ...READ MORE

Jan 17, 2019 in Ansible by Sameer
5,055 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,096 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,739 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,419 views
0 votes
1 answer

Setting Up Ansible Hosts

Hey @Sammer, follow these steps: Open the host's ...READ MORE

Jan 17, 2019 in Ansible by Sinha
368 views
0 votes
1 answer

Configuring SSH Access to the Ansible Hosts

Hey @Shakira, follow these steps: Execute the following ...READ MORE

Jan 17, 2019 in Ansible by Sam
1,014 views
0 votes
1 answer

Error saying "One or more undefined variables: 'ansible_facts' is undefined"

The command you've executed basically means run ...READ MORE

Jan 17, 2019 in Ansible by Karen
4,258 views
0 votes
1 answer

Issue while using lineinfile module - Ansible

The lineinfile task has to match both the ...READ MORE

Jan 17, 2019 in Ansible by Lavanya
710 views
0 votes
1 answer

lineinfile module in Ansible

You can use the lineinfile module for ...READ MORE

Jan 17, 2019 in Ansible by Emily
1,050 views
0 votes
1 answer

Remote host throwing error saying "Permission Denied" - Ansible

Hey @Patrick, Change the path of Ansible's remote_tmp ...READ MORE

Jan 16, 2019 in Ansible by Cerci
4,560 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,071 views
0 votes
1 answer

Ansible playbook to wget a file

Hey @Celia, one recommendation, try not using ...READ MORE

Jan 16, 2019 in Ansible by Vaishu
16,724 views
0 votes
1 answer

Ansible playbook for moving files from one node to another remote node

The best way to do this is: copy ...READ MORE

Jan 16, 2019 in Ansible by Nigya

edited Jan 18, 2019 by Vardhan 9,280 views
0 votes
1 answer

Ansible playbbok to copy files from one node to another remote node

You can create a playbook for copying ...READ MORE

Jan 16, 2019 in Ansible by Danica
3,839 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,410 views
0 votes
1 answer

Error saying "DistributionNotFound jinja2<2.9"

Hey @Kiara, update your distribution instead of jinja ...READ MORE

Jan 14, 2019 in Ansible by Rahul
375 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,360 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,400 views
0 votes
1 answer

Showing different Ansible version

Seems like you have two versions of ...READ MORE

Jan 14, 2019 in Ansible by Natasha
535 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,468 views
0 votes
1 answer

Trying to install a program from ansible playbook on vagrant but ends up failing

Hey @Rajni, you can register the variable ...READ MORE

Jan 13, 2019 in Ansible by Mike
623 views
0 votes
1 answer

Error saying "ImportError: No module named ansible.playbook" when installing Ansible on AWS

Hey Loki, Looks like your python library ...READ MORE

Jan 13, 2019 in Ansible by Patrick
14,158 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

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,597 views
0 votes
1 answer

Install Ansible using cygwin

Follow these steps to install ansible using ...READ MORE

Jan 10, 2019 in Ansible by Kush
8,066 views
0 votes
1 answer

Install ansible galaxy roles

Here is a very basic example that ...READ MORE

Jan 10, 2019 in Ansible by Disha
539 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,881 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

Provide Ansible with sudo passwords

These are the exact situations where we ...READ MORE

Jan 10, 2019 in Ansible by Noor
367 views
0 votes
1 answer

Create a directory at a specific path using ansible

To create a directory using Ansible, you ...READ MORE

Jan 9, 2019 in Ansible by Jason
978 views
0 votes
1 answer

Error saying "conflicting action statements: user, uri"

YAML files are very sensitive about the ...READ MORE

Jan 9, 2019 in Ansible by krishti
6,311 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

Error saying "KeyError: 'ApiVersion'" - Ansible

The reason behind this error is that ...READ MORE

Jan 8, 2019 in Ansible by Sasha
686 views
+1 vote
1 answer

Error saying "Package not a legal parameter in an Ansible task or a handler" - Ansible

This has been happening to a lot ...READ MORE

Jan 8, 2019 in Ansible by Takeshi
2,769 views
0 votes
1 answer

What all can I do with Ansible?

Ansible is capable of doing a lot ...READ MORE

Jan 8, 2019 in Ansible by Takeshi
531 views
0 votes
1 answer

Advantages of using Ansible?

Ansible has a lot of advantages, like ...READ MORE

Jan 8, 2019 in Ansible by Thomas
848 views
0 votes
1 answer

Deploy nginx using Ansible

Follow these steps: Use the following command in ...READ MORE

Jan 8, 2019 in Ansible by Barbara
812 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,153 views
0 votes
1 answer

Install Ansible on centOS

Hey @Ali, Installing Ansible is a piece ...READ MORE

Jan 8, 2019 in Ansible by Kiara
440 views
0 votes
1 answer

Unable to install Ansible on centOS

Seems like you're stuck at creating ansible ...READ MORE

Dec 20, 2018 in Ansible by Alan
544 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,346 views
0 votes
1 answer

Error updating rsyslog using ansible

apparently my proxy server was blocking the ...READ MORE

Aug 17, 2018 in Ansible by DareDev
• 6,890 points
617 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

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,422 views