Latest questions in Ansible

0 votes
1 answer

Advantages of using Ansible?

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

Jan 8, 2019 in Ansible by Thomas
846 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

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,143 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

Unable to install Ansible on centOS

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

Dec 20, 2018 in Ansible by Alan
531 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,338 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 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,258 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,415 views
+1 vote
1 answer

Is it possible to append a large amount of text to a file using Ansible?

Here is concept which you can follow. blockinfile is ...READ MORE

Jul 30, 2018 in Ansible by Atul
• 10,240 points
14,054 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
519 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

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

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

ansible playbook: using multiple variables in loops

Use an indexed hostname, and then define ...READ MORE

Jul 16, 2018 in Ansible by DareDev
• 6,890 points
18,263 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
957 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,520 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,121 views
0 votes
2 answers

How do you stop Ansible from creating .retry files in the home directory?

[defaults] ... retry_files_enabled = True # Create them ...READ MORE

Apr 5, 2019 in Ansible by anonymous
2,939 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,019 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

Using hyphen in ansible

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

Jul 10, 2018 in Ansible by Kalgi
• 2,680 points
2,066 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

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
637 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,669 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

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,132 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,170 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,009 views
+1 vote
3 answers

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

I hadn't created the ssh connection between ...READ MORE

Apr 23, 2019 in Ansible by Lavanya
19,743 views
0 votes
2 answers

ansible-command not found

Use some other variable instead of PATH. READ MORE

Apr 23, 2019 in Ansible by Vismaya
10,388 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,183 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

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,512 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
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