Trending questions in Ansible

0 votes
1 answer

How to delete a key pair in AWS from Ansible-Playbook?

Hi@akhtar, You can use the ec2_key module in ...READ MORE

Aug 12, 2020 in Ansible by MD
• 95,460 points
1,052 views
0 votes
1 answer

How to create VPC in AWS from Ansible controller node?

Hi@akhtar, You can find one module named ec2_vpc ...READ MORE

Aug 13, 2020 in Ansible by MD
• 95,460 points
884 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,460 points
1,840 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,460 points
1,305 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,460 points
1,233 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,460 points
631 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,460 points
621 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,460 points
938 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
13,292 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,460 points
1,453 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,460 points
646 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,460 points
644 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,460 points
2,366 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
5,318 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
7,025 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
13,283 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,350 points
9,585 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
8,073 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,892 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
16,826 views
0 votes
1 answer

want to comment cron job using ansible

- ...READ MORE

Jun 18, 2020 in Ansible by Disha Khandelwal
2,584 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,958 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,489 views
+2 votes
2 answers
+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,845 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
17,586 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
20,417 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,350 points
1,033 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,800 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
14,358 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,657 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,924 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,548 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
7,236 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,622 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
3,248 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,350 points
4,979 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,900 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,803 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
1,093 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
11,277 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
1,005 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,789 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
11,071 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
2,027 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,899 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 4,064 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
2,065 views
0 votes
2 answers

Create k8s namespace using ansible

You can also create a kubernetes namespace ...READ MORE

Jun 11, 2019 in Ansible by Nasser

edited Jun 11, 2019 7,658 views