Most answered questions in Ansible

0 votes
1 answer

How to create template in Ansible?

Hi@akhtar, A template in Ansible is a file ...READ MORE

Aug 2, 2020 in Ansible by MD
• 95,440 points
451 views
0 votes
1 answer

What is a template in Ansible?

Hi@akhtar, Managing configurations of multiple servers and environments are ...READ MORE

Aug 2, 2020 in Ansible by MD
• 95,440 points
391 views
0 votes
1 answer

How to give a task name in Ansible?

Hi@akhtar, You can give the task name in ...READ MORE

Aug 2, 2020 in Ansible by MD
• 95,440 points
5,295 views
0 votes
1 answer

How to capture the output of a task in Ansible Playbook?

Hi@akhtar, Ansible registers module used to capture/store the ...READ MORE

Aug 2, 2020 in Ansible by MD
• 95,440 points
14,413 views
0 votes
1 answer

How to create a variable in Ansible Playbook?

Hi@akhtar, Variable in playbooks are very similar to using variables in ...READ MORE

Aug 2, 2020 in Ansible by MD
• 95,440 points
1,077 views
0 votes
1 answer

FAILED! => {"changed": false, "msg": "src and content are mutually exclusive"}

Hi@akhtar, You can't use content and src argument ...READ MORE

Aug 2, 2020 in Ansible by MD
• 95,440 points
2,755 views
0 votes
1 answer

How to overwrite the content of a file in remote systems using Ansible playbook?

Hi@akhtar, You can find one argument in the ...READ MORE

Aug 2, 2020 in Ansible by MD
• 95,440 points
13,372 views
0 votes
1 answer

How to create a group of Managed Nodes in Ansible?

Hi@akhtar, You can use tags in your inventory ...READ MORE

Aug 1, 2020 in Ansible by MD
• 95,440 points
997 views
+1 vote
1 answer

"msg": "Using a SSH password instead of a key is not possible because Host Key checking is enabled and sshpass does not support this.

Hi@akhtar, You are getting this error because when ...READ MORE

Aug 1, 2020 in Ansible by MD
• 95,440 points
32,976 views
0 votes
1 answer

How to configure httpd web server using Ansible Playbook?

Hi@akhtar, You need to write one program file ...READ MORE

Jul 30, 2020 in Ansible by MD
• 95,440 points
3,013 views
0 votes
1 answer

How to start httpd service in a remote system using Ansible?

Hi@akhtar, Ansible has a module named service. This ...READ MORE

Jul 30, 2020 in Ansible by MD
• 95,440 points
2,942 views
0 votes
1 answer

How to copy files in remote system using Ansible?

Hi@akhtar, You need to use the copy module ...READ MORE

Jul 30, 2020 in Ansible by MD
• 95,440 points
2,107 views
0 votes
1 answer

How to install httpd web server in remote node using Ansible?

Hi@akhtar, You need to use the package module in Ansible. ...READ MORE

Jul 30, 2020 in Ansible by MD
• 95,440 points
2,237 views
0 votes
1 answer

"msg": "Failed to connect to the host via ssh: ssh: connect to host 192.168.0.179 port 22: Connection timed out",

Hi@akhtar, I think there is a problem with ...READ MORE

Jul 28, 2020 in Ansible by MD
• 95,440 points
7,851 views
0 votes
1 answer

No match for argument: sshpass Error: Unable to find a match

Hi@akhtar, The sshpass software is not part of ...READ MORE

Jul 28, 2020 in Ansible by MD
• 95,440 points
7,617 views
0 votes
1 answer

FAILED! => { "msg": "to use the 'ssh' connection type with passwords, you must install the sshpass program"

Hi@akhtar, Ansible needs extra software to run commands ...READ MORE

Jul 28, 2020 in Ansible by MD
• 95,440 points
10,759 views
0 votes
1 answer

"msg": "Failed to connect to the host via ssh: root@192.168.0.179: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).",

Hi@akhtar, You need to pass the username and ...READ MORE

Jul 28, 2020 in Ansible by MD
• 95,440 points
15,668 views
0 votes
1 answer

Error reading config file (/etc/ansible/ansible.cfg): File contains no section headers.

Hi@akhtar, You need to add one tag in ...READ MORE

Jul 28, 2020 in Ansible by MD
• 95,440 points
14,167 views
0 votes
1 answer

How to list down all the hosts in Ansible?

Hi@akhtar, You can use the option --list-hosts. It will ...READ MORE

Jul 28, 2020 in Ansible by MD
• 95,440 points
43,862 views
0 votes
1 answer

bash: ansible: command not found. Failed to search for file: Cannot update read-only repo

Hi@akhtar, By default, Ansible is not part of ...READ MORE

Jul 28, 2020 in Ansible by MD
• 95,440 points
10,384 views
0 votes
1 answer

How to install Ansible in Linux system?

Hi@akhtar, To install Ansible in your Linux system, ...READ MORE

Jul 28, 2020 in Ansible by MD
• 95,440 points
731 views
0 votes
1 answer

No match for argument: ansible Error: Unable to find a match

Hi@akhtar, Ansible is not part of your RedHat ...READ MORE

Jul 28, 2020 in Ansible by MD
• 95,440 points
14,220 views
0 votes
1 answer

ansible ssh and user module issue with edureka VM

Hi@Konakanchl, I guess you need to give your ...READ MORE

Jul 23, 2020 in Ansible by akhtar
• 38,230 points
2,274 views
0 votes
1 answer

Become : yes is not working while running ansible playbook from Jenkins pipeline job

Hi, Jenkins will not able to run the ...READ MORE

Jul 21, 2020 in Ansible by MD
• 95,440 points
1,575 views
0 votes
1 answer

Unable to install packages through Ansible

Hi, Try to ping your all nodes. There ...READ MORE

Jul 15, 2020 in Ansible by MD
• 95,440 points
1,240 views
+1 vote
1 answer

How to deploy war file into the Websphere using ansible playbook

Hi@M, You can use the below-given example. - name: ...READ MORE

Jun 29, 2020 in Ansible by MD
• 95,440 points
2,075 views
+1 vote
1 answer

Can you give example for environment module and also explain about environmnet

Hi @Vivek So basically when you are working ...READ MORE

Jan 16, 2020 in Ansible by Kalgi
• 52,360 points
766 views
0 votes
1 answer

Ansible playbook to check if http support for apt is installed

Hi @Hannah, this ansible task should do ...READ MORE

Nov 25, 2019 in Ansible by Aria
796 views
0 votes
1 answer

Ansible task to check if PGP key is installed on Ubuntu

Hi @hannah, have a look at this, ...READ MORE

Nov 25, 2019 in Ansible by Aria
902 views
0 votes
1 answer

Can Ansible replace Jenkins?

Ansible is a configuration management tool whereas ...READ MORE

Nov 15, 2019 in Ansible by Eric
1,774 views
0 votes
1 answer

How do I check uptime on hundreds of servers using Ansible?

You need an Ansible box for this, ...READ MORE

Nov 15, 2019 in Ansible by Eric
12,312 views
0 votes
1 answer

logic that creates or removes a Liberty server at the runtime - Ansible for WebSphere deployment

You can use the ansible module called ...READ MORE

Oct 30, 2019 in Ansible by Tanya
754 views
0 votes
1 answer

Ansible playbook to start or stops a Liberty Profile server in WebSphere deployment

Check this out: - name: Start liberty_server: ...READ MORE

Oct 30, 2019 in Ansible by Tanya
1,736 views
0 votes
1 answer

ansible playbook to start and stop a WebSphere application

The below playbook should be good enough: - ...READ MORE

Oct 30, 2019 in Ansible by Tanya
6,309 views
0 votes
1 answer

ansible playbook to create and remove a WebSphere Application Server Node Agent profile

This should workout: - name: Create profile_nodeagent: ...READ MORE

Oct 30, 2019 in Ansible by Tanishq
952 views
+1 vote
1 answer

ansible playbook to create and remove a WebSphere application server deployment manager profile

The below gives an example of creating ...READ MORE

Oct 30, 2019 in Ansible by Tanmay
3,345 views
0 votes
1 answer

Ansible playbook to install and update the IBM packages from local or remote repositories

Hi @Hannah, I have this and it ...READ MORE

Oct 30, 2019 in Ansible by Tanmay
2,905 views
0 votes
1 answer

ansible playbook that installs or uninstalls IBM Installation Manager

have a look at this ansible-playbook. It ...READ MORE

Oct 30, 2019 in Ansible by Yesha
1,150 views
0 votes
1 answer

Variables needed to write ansible playbook to install Mysql and mariadb on ubuntu

You need three main variables, one to ...READ MORE

Oct 24, 2019 in Ansible by Bob
1,800 views
0 votes
1 answer

Requirements to install MySQL and MariaDB on ubuntu - Ansible

You don't really need anything specific. Just ...READ MORE

Oct 24, 2019 in Ansible by Bob
527 views
0 votes
1 answer

I am trying to installing an ubuntu instance hosted in Vultr. Apparently my SSL certificate is failing.

The cert.pem file is a somehow moving to ...READ MORE

Oct 15, 2019 in Ansible by Yogesh

edited Oct 15, 2019 1,407 views
0 votes
1 answer

Ansible error "urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:727)"

That means you do not have the ...READ MORE

Oct 15, 2019 in Ansible by Yogesh
12,672 views
+2 votes
1 answer

getting error while installing ansible on redhat8

Solution is to update epel.  https://access.redhat.com/solutions/3358 Try and let ...READ MORE

Dec 4, 2019 in Ansible by Raveendiran
• 980 points
1,489 views
0 votes
1 answer

what is the difference between tags and delegate_to in ansible?

Hey @Rajendra, If you wish to perform ...READ MORE

Sep 24, 2019 in Ansible by Kalgi
• 52,360 points
1,661 views
0 votes
1 answer

How to increase aws ebs volume using ansible ?

Hey, I am unaware of any specific ...READ MORE

Sep 9, 2019 in Ansible by Kalgi
• 52,360 points
4,530 views
+1 vote
1 answer

Ansible-playbook to install and configure Nginx+Nodejs+Npm+PM2

Try thhis out: --- - hosts: hosts tasks: ...READ MORE

Sep 3, 2019 in Ansible by Kalgi
• 52,360 points
9,065 views
0 votes
1 answer

Ansible playbook to delete multiple S3 buckets

Hey @Hari, you can use the following ...READ MORE

Aug 30, 2019 in Ansible by Chris
1,145 views
0 votes
1 answer

Delete an object from a bucket - ansible playbook

You have to use the following task ...READ MORE

Aug 26, 2019 in Ansible by Hari
1,167 views