Trending questions in Ansible

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,062 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,545 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,254 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
980 views
0 votes
1 answer

What does Fact mean in Ansible?

Hi@akhtar, When any new variable about the system ...READ MORE

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

How to decrypt a vault in Ansible?

Hi@akhtar, You can use decrypt keyword in your ...READ MORE

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

Install git using Ansible

Installing git using ansible is pretty simple. ...READ MORE

Mar 15, 2019 in Ansible by Haider
22,619 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
718 views
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
438 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,224 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
381 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,051 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,604 views
0 votes
1 answer

how can we unarchive multiple different files using ansible-playbook? i tried this yml file its getting error

RAR file is used to store other ...READ MORE

Oct 9, 2020 in Ansible by jack miller
4,849 views
0 votes
1 answer

Ansible error: ERROR! Variables must be specified as a dictionary, or a list of dictionaries

the correct syntax for the var file ...READ MORE

Jun 2, 2020 in Ansible by yehuda
6,334 views
0 votes
1 answer

Ansible error "from ansible import context ImportError: cannot import name context"

I had faced a similar issue. In ...READ MORE

Aug 8, 2019 in Ansible by Pallavi
12,684 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
8,987 views
0 votes
2 answers

Check is a package exists - Ansible

Hey There, @here is an example for your ...READ MORE

May 6, 2020 in Ansible by Rajat
• 160 points
7,577 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,267 views
0 votes
1 answer

want to comment cron job using ansible

- ...READ MORE

Jun 18, 2020 in Ansible by Disha Khandelwal
2,196 views
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
2 answers

Ansible task to list all pods from any k8s namespace

Here is a more complete answer for ...READ MORE

Feb 6, 2020 in Ansible by scatat
6,265 views
+1 vote
1 answer

How download artifactory(.tar.gz file) from jfrog artifactory using ansible playbook in linux servers?

Hey @Anil, download the artifactory(.tar.gz) file and ...READ MORE

Aug 13, 2019 in Ansible by Kamal
8,361 views
0 votes
1 answer

Change Ansible Vault editor from vi to nano

By default, the editor used by the ...READ MORE

Mar 5, 2019 in Ansible by Yogesh
15,174 views
0 votes
1 answer

Ansible playbook to wget a file

Hey @Celia, one recommendation, try not using ...READ MORE

Jan 16, 2019 in Ansible by Vaishu
16,638 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
745 views
+1 vote
4 answers

Pass variable to ansible playbook through command line

ansible-playbook test.yml --extra-vars "arg1=${var1} arg2=${var2}" Use is like ...READ MORE

May 7, 2019 in Ansible by Bobin
13,958 views
0 votes
1 answer

How to ignore failed commands in Ansible?

Usually, if even one command fails to ...READ MORE

Feb 7, 2019 in Ansible by Patt
15,389 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,718 views
0 votes
1 answer

Error saying permission denied while running ansible playbook

Hey @Neha, add the following line to ...READ MORE

Feb 8, 2019 in Ansible by Amy
15,107 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,324 views
0 votes
1 answer

Error saying " mapping values are not allowed in this context" while executing an ansible playbook

Hey, @Nishit seems like you've made a ...READ MORE

Jan 21, 2019 in Ansible by Emily
15,427 views
0 votes
1 answer

Ansible task to download a file from an S3 bucket

Hey @Roshan, ansible provides wiht AWS module ...READ MORE

Aug 1, 2019 in Ansible by Varsha
6,836 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,882 views
0 votes
1 answer

Is it possible to run an Ansible Playbook in python script?

Hey @Cerci, Of course its possible. You ...READ MORE

Jan 17, 2019 in Ansible by Nicolas
15,050 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,768 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,497 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
886 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
778 views
0 votes
1 answer

Ansible task to know if a path exists and if its a directory

Hi @Nisha, use the stat module provided ...READ MORE

Apr 2, 2019 in Ansible by Alok
10,945 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,461 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,714 views
0 votes
1 answer

Playbook to install and start nginx on ubuntu

Write your playbook like this: --- - hosts: droplets ...READ MORE

Mar 15, 2019 in Ansible by Deep
11,544 views
0 votes
1 answer

Error saying "ImportError: No module named ansible.playbook" when installing Ansible on AWS

Hey Loki, Looks like your python library ...READ MORE

Jan 13, 2019 in Ansible by Patrick
14,118 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,782 views
0 votes
1 answer

ERROR: Ansible playbook execution failed - Ansible Jenkins

Hey @Asha, Try to run it as user ...READ MORE

Apr 4, 2019 in Ansible by Aman
10,449 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
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,130 views