Trending questions in Ansible

0 votes
1 answer

Can we run parallel jobs in Ansible

Running parallel tasks in Ansible is not ...READ MORE

Aug 5, 2019 in Ansible by Kalgi
• 52,360 points
4,740 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
960 views
0 votes
1 answer

Pass sudo password while executing Ansible playbook

Hey @Bob, try something like this: ansible-playbook playbook.yml ...READ MORE

Jul 22, 2019 in Ansible by Akash
5,152 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
776 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 6,835 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,412 views
0 votes
1 answer

Ansible error "Could not find aptitude. Using apt-get instead"

Hey @Hita, use the apt module to ...READ MORE

Aug 26, 2019 in Ansible by Jinu
3,475 views
0 votes
1 answer

Error saying "Failed to find required executable gpg in paths"

Hey @Nisha, according to your error, your ...READ MORE

Mar 13, 2019 in Ansible by Yesha
10,327 views
0 votes
1 answer

Ansible playbook to copy database dump file to remote host and restore it to another database

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

Aug 8, 2019 in Ansible by Kalgi
• 52,360 points
3,909 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
530 views
0 votes
0 answers

How to write a playbook for websphere deployment?

Oct 19, 2019 in Ansible by Rajendra
• 510 points
748 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,668 views
0 votes
1 answer

Ansible task to copy file to S3 bucket

Hey @Adarsh, try this task definition: --- - hosts: ...READ MORE

Aug 1, 2019 in Ansible by Vish
3,945 views
0 votes
2 answers

Error while creating resource group on Azure using Ansible

Please check you indentation, remove all spaces ...READ MORE

Mar 17, 2020 in Ansible by Shrikant Yerge
1,201 views
0 votes
1 answer

Ansible playbook to create a new database

Hi pravalika, its pretty simple.  You just ...READ MORE

Aug 8, 2019 in Ansible by Trvais
2,796 views
0 votes
1 answer

How do I configure a jump host to access servers that I have no direct access to?

You can set a ProxyCommand in the ansible_ssh_common_args inventory variable. Any ...READ MORE

Jan 31, 2019 in Ansible by Mahir
10,784 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 628 views
0 votes
1 answer

Ansible playbook to create an S3 bucket

Hey @Alok, an ansible task like this ...READ MORE

Aug 1, 2019 in Ansible by Vish
2,916 views
0 votes
1 answer
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
939 views
0 votes
1 answer
0 votes
1 answer

Ansible playbook for a shall script

You can convert a shell script to ...READ MORE

Aug 26, 2019 in Ansible by Anjali
1,330 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,150 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
957 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,172 views
0 votes
1 answer

Getting error when using Ansible playbook. error message: “msg”: “boto required for this module”

Hey @Vardhan, you're missing out on the ...READ MORE

Mar 29, 2019 in Ansible by Himanshu
7,408 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,348 views
0 votes
1 answer

ansible playbook to get get a specific version of an s3 object

You can use an ansible task, something ...READ MORE

Aug 26, 2019 in Ansible by Rhea
776 views
+1 vote
2 answers

message saying "Another app is currently holding the yum lock; waiting for it to exit..." when trying to install Ansible

Hi, I may not sure about the answer ...READ MORE

Jan 24, 2020 in Ansible by vivek
• 530 points
2,303 views
0 votes
1 answer

Ansible Error "ERROR! 'vars_files' is not a valid attribute for a PlaybookInclude"

vars_files is not supported for included playbooks ...READ MORE

Jun 3, 2019 in Ansible by Tara
4,366 views
0 votes
1 answer

Ansible task to determine if a path exists and is a symlink

Hi @neha, you can write your task ...READ MORE

Apr 2, 2019 in Ansible by Alok
6,949 views
0 votes
1 answer

1 master 10 clients - run ansible playbook only on 5

Create a group in the inventory file ...READ MORE

Aug 8, 2019 in Ansible by Tanya
767 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
434 views
0 votes
1 answer

Use parameters stored in aws parameter store in ansible playbook

Use aws_ssm module for this purpose: - name: ...READ MORE

Jul 23, 2019 in Ansible by Vishnu
1,440 views
0 votes
1 answer

Delete an object/file from an s3 bucket

Hey @Jinu, you can try the following ...READ MORE

Aug 1, 2019 in Ansible by Barbara
951 views
0 votes
1 answer

Ansible playbook for moving files from one node to another remote node

The best way to do this is: copy ...READ MORE

Jan 16, 2019 in Ansible by Nigya

edited Jan 18, 2019 by Vardhan 9,298 views
0 votes
2 answers

How to create MySQL tables using Ansible?

--- - hosts: dbserver   tasks:    - name: create a table ...READ MORE

Mar 19, 2019 in Ansible by Ankit Tyagi
7,504 views
+1 vote
1 answer

Ansible Playbook cannot locate the role

Use requirements.yml file and running it with: ansible-galaxy install -r ...READ MORE

Mar 13, 2019 in Ansible by krishti
6,630 views
0 votes
1 answer

Get MD5 checksum of a windows file using Ansible

Hi @Travis, you can use the win_stat ...READ MORE

Jun 11, 2019 in Ansible by Greg
2,816 views
0 votes
1 answer

How do I access environment variables in Ansible?

Yes @Nagray, you're right! You can access ...READ MORE

Jan 24, 2019 in Ansible by Tessie
8,143 views
0 votes
1 answer

What is the difference between the host file and an inventory file in ansible?

Actually both are same. hosts file is ...READ MORE

Feb 12, 2019 in Ansible by Amith
• 140 points
7,318 views
0 votes
1 answer

Installing nodejs using ansible

Your role should look something like this: - ...READ MORE

Mar 15, 2019 in Ansible by Hari
5,549 views
0 votes
1 answer

Install Ansible using cygwin

Follow these steps to install ansible using ...READ MORE

Jan 10, 2019 in Ansible by Kush
8,091 views
0 votes
1 answer

Error saying ""msg": "Failed to import docker-py - No module named 'requests.packages.urllib3'. Try `pip install docker-py`""

Hey @Hari, In addition to docker-py install the following ...READ MORE

Feb 9, 2019 in Ansible by Monish
6,599 views
0 votes
1 answer

Ansible "When" statement

You can try the following workaround. So ...READ MORE

Jul 4, 2019 in Ansible by Anvit
869 views
+1 vote
1 answer
0 votes
1 answer

What are the SCM tools supported by jenkins?

Hey @Jugnu, below are Source code management ...READ MORE

Feb 13, 2019 in Ansible by Imran
6,372 views
0 votes
2 answers

Error saying "Extraneous options or arguments" when trying to run an ansible playbook

ERROR! Extraneous options or arguments READ MORE

May 30, 2019 in Ansible by anonymous
4,427 views
0 votes
1 answer

obtain information about a file in windows using ansible playbook

Hey @Travis, you can use the win_stat ...READ MORE

Jun 11, 2019 in Ansible by Drake
1,113 views
0 votes
1 answer

Ansible task to read definition file from the Ansible controller file system.

Hey, you can use the k8s module ...READ MORE

Jun 11, 2019 in Ansible by Babita
1,081 views