Most answered questions in Ansible

+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,031 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
513 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,025 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,222 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,116 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,110 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,236 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
953 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,512 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,115 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,008 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,505 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,055 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,541 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
636 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,655 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,050 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,123 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,003 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,176 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,768 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,500 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
658 views
0 votes
0 answers

How to extract information about remote linux servers using ansible?

It is important to gather data from ...READ MORE

Dec 15, 2022 in Ansible by Edureka
• 12,690 points
452 views
0 votes
0 answers

How do I execute MySqL query using Ansible playbook

Dear team, I'm trying to execute MySQL , ...READ MORE

Oct 4, 2021 in Ansible by anonymous
• 140 points
2,877 views
0 votes
0 answers
0 votes
0 answers

Set up the necessary tools such as git, chromedriver(selenium), chromium browser(selenium) on the slave node through Ansible [closed]

Going through the Devops project. There is ...READ MORE

Feb 9, 2020 in Ansible by anonymous
• 130 points

closed Feb 14, 2020 by Sirajul 1,294 views
0 votes
0 answers

How to write a playbook for websphere deployment?

Oct 19, 2019 in Ansible by Rajendra
• 510 points
706 views
0 votes
0 answers

what is the difference between tags and delegate_to in ansible? [closed]

Sep 23, 2019 in Ansible by Rajendra
• 510 points

closed Sep 24, 2019 by Kalgi 618 views
0 votes
0 answers

How to launch ec2 instance with allocating EIP?

I have tried to launch EC2 instance ...READ MORE

Sep 10, 2019 in Ansible by Lakshminarayanan
• 1,370 points
922 views
0 votes
0 answers

How to create AMI from running instance using ansible?

Hi, I need to take AMI(amazon machine ...READ MORE

Sep 9, 2019 in Ansible by Lakshminarayanan
• 1,370 points

edited Sep 9, 2019 by Lakshminarayanan 3,650 views
0 votes
0 answers

Error "script not found" when suing ansible playbook to start an application using pm2

I have written an ansible task to ...READ MORE

Sep 4, 2019 in Ansible by Tara
946 views
0 votes
0 answers

it will executing but skipping the tomcat and Jenkins

---   - hosts: all     become: yes     tasks:       - name: installing tools         yum: ...READ MORE

Aug 17, 2019 in Ansible by Rajendra
• 510 points
421 views
0 votes
0 answers
0 votes
0 answers

How get_facts or show commands on A10 network? - Ansible

I'm a network engineer leveraging the A10s ...READ MORE

Apr 23, 2019 in Ansible by David
• 120 points
633 views
0 votes
0 answers

Error while executing playbook to start ec2 instance

I have a playbook that starts an ...READ MORE

Mar 29, 2019 in Ansible by Kalgi
965 views
0 votes
0 answers

Service mongod not found

I have a playbook to install mean ...READ MORE

Mar 15, 2019 in Ansible by kalgi
260 views