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,694 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
937 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,130 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,401 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
737 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,716 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,443 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,877 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
521 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,226 views
0 votes
0 answers

How to write a playbook for websphere deployment?

Oct 19, 2019 in Ansible by Rajendra
• 510 points
709 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,648 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,908 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,178 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,767 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 620 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,898 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,758 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
923 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,305 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,136 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
947 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,155 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,372 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
758 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,260 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,244 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,293 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,867 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
757 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
427 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,412 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
936 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,259 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,426 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,774 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,581 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,098 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,238 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,518 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,039 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,573 views
0 votes
1 answer

Ansible "When" statement

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

Jul 4, 2019 in Ansible by Anvit
839 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,294 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,353 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,102 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,059 views