Trending questions in Ansible

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
622 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
807 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
529 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
358 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
677 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
374 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
535 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
526 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
431 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
363 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
534 views
0 votes
1 answer

Run multiple lineinfile commands with with_items

Here is the example playbook to ensure ...READ MORE

Jul 10, 2018 in Ansible by Kalgi
• 2,680 points
6,519 views
0 votes
1 answer

How to use Ansible git module pull a branch with local changes?

You cannot achieve it using the git ...READ MORE

Jul 9, 2018 in Ansible by Atul
• 10,240 points
6,559 views
0 votes
1 answer

Ansible: setting profile source in ansible.config

Try and add path in .bashrc or ...READ MORE

Jul 10, 2018 in Ansible by ajs3033
• 7,300 points
6,024 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,341 views
0 votes
1 answer

How to regex replace nested values in Ansible

I'm not aware of any built-in method ...READ MORE

Jun 17, 2018 in Ansible by shubham
• 7,340 points
5,138 views
0 votes
1 answer

One loop over multiple Ansible tasks

With_items has unfortunately stopped but it’s coming ...READ MORE

Jul 23, 2018 in Ansible by Kalgi
• 52,360 points
3,114 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,419 views
0 votes
1 answer

Permission denied when running ansible playbook through jenkins

Jenkins uses it's own user to execute ...READ MORE

Jun 25, 2018 in Ansible by DareDev
• 6,890 points
3,673 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,233 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,522 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,037 views
0 votes
1 answer

How do I execute a shell script and then use the result in ansible

This can work out for you: - name: ...READ MORE

Apr 11, 2018 in Ansible by shubham
• 7,340 points
6,516 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,262 views
0 votes
1 answer

Using multiple config files using same template in a role in ansible

Go through this include_role module: tasks: - ...READ MORE

Jun 5, 2018 in Ansible by DareDev
• 6,890 points
4,012 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,124 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
615 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,069 views
0 votes
1 answer

When conditional not working in Ansible

Your identation is wrong and when is ...READ MORE

Apr 27, 2018 in Ansible by ajs3033
• 7,300 points
5,187 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,126 views
0 votes
1 answer

stopping different hosts from reading the same value when usign ansible in loop

Try using this. Create a new directory ...READ MORE

Jul 27, 2018 in Ansible by DareDev
• 6,890 points
522 views
0 votes
1 answer

devops , how to create user using ansible playbook

root doesn't need a password to switch ...READ MORE

Jul 16, 2018 in Ansible by Kalgi
• 2,680 points
959 views
0 votes
1 answer

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

Just go through the error message: Ansible can't ...READ MORE

Apr 25, 2018 in Ansible by shubham
• 7,340 points
3,777 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,055 views
0 votes
1 answer

unable to build grails war on a vagrant machine using ansible

Try and run the command using shell ...READ MORE

Jul 2, 2018 in Ansible by ajs3033
• 7,300 points
638 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
935 views
0 votes
1 answer

How can I create a new user using ansible ploybook?

You're switching from the root user. Root ...READ MORE

Mar 29, 2018 in Ansible by DareDev
• 6,890 points
665 views