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
619 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
528 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
353 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
373 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
525 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
429 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
533 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,518 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,558 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,022 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,340 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,135 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,112 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,417 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,670 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,228 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,521 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,033 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,515 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,259 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,010 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,122 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
614 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,068 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,186 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
521 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
958 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,775 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
933 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
664 views