Most viewed questions in Ansible

0 votes
1 answer

How do I make my_dir available for all hosts? - Ansible

Hey @Kiara,  f you want to make my_dir available to ...READ MORE

Feb 1, 2019 in Ansible by Anisha
819 views
0 votes
1 answer

Make Ansible throw an error inside the role

Hey @Nisha, you can use the block/rescue ...READ MORE

Mar 13, 2019 in Ansible by Kim
810 views
0 votes
1 answer

Deploy nginx using Ansible

Follow these steps: Use the following command in ...READ MORE

Jan 8, 2019 in Ansible by Barbara
807 views
0 votes
1 answer

When to use dynamic inventory?

If your Ansible inventory fluctuates over time, ...READ MORE

Mar 24, 2019 in Ansible by Nitesh
805 views
0 votes
1 answer

What is ansible tower?

Hey @Nisha, Ansible Tower is Ansible at a ...READ MORE

Jan 25, 2019 in Ansible by Shankar
792 views
0 votes
1 answer

What are connection plugins in Ansible?

Hey @Jay, connection plugins allow ansible to ...READ MORE

Feb 20, 2019 in Ansible by Shalaka
791 views
0 votes
1 answer

Ansible with AWS Parameter store

Hey @Dipti, have a look at the ...READ MORE

Mar 24, 2019 in Ansible by Rhea
790 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
783 views
0 votes
1 answer

Playbook to create a VM on Azure

Hey @Bob, try something like this to ...READ MORE

Mar 27, 2019 in Ansible by Jason
783 views
0 votes
1 answer

Error saying "ERROR: ec2_vpc_subnet is not a legal parameter of an Ansible Play"

ec2_vpc_subnet is support from Ansible version 2.0 and ...READ MORE

Feb 8, 2019 in Ansible by Dee
773 views
0 votes
1 answer

How to copy an AMI in a different region using Ansible Playbook?

Hi@akhtar, Ansible has one module to copy AMI ...READ MORE

Dec 4, 2020 in Ansible by MD
• 95,440 points
772 views
0 votes
1 answer

Create a container with limited capabilities using Ansible playbook.

Hi@akhtar, The docker_container module has capabilitues keyword. This ...READ MORE

Sep 20, 2020 in Ansible by MD
• 95,440 points
767 views
0 votes
1 answer

Set an explicit inventory file - Kubespray

Hi @Isha, Go to /etc/ansible/ansible.cfg In the default section ...READ MORE

Jan 23, 2019 in Ansible by Yesha
763 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
762 views
0 votes
1 answer

What are cache plugins in Ansible?

Cache plugins allow Ansible to store gathered facts ...READ MORE

Feb 20, 2019 in Ansible by Kashish
761 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
759 views
0 votes
1 answer

Playbook to get all the container's ARN's in my AWS ECS cluster

Hey @haseeb, you could try something like ...READ MORE

Apr 9, 2019 in Ansible by Anshul
754 views
0 votes
1 answer

How to create a cloudfront distribution using Ansible?

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

Sep 30, 2020 in Ansible by MD
• 95,440 points
753 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
750 views
0 votes
1 answer

Can I use Kubespray without using kubespray_git_repo?

Hey @Sparsh, Obviously you can, follow these ...READ MORE

Jan 23, 2019 in Ansible by Shankar
749 views
0 votes
1 answer

How to create a new encrpted file using Ansible Vault?

If you are creating a new file ...READ MORE

Jan 29, 2019 in Ansible by Kyraa
748 views
0 votes
1 answer

Error message saying variable undefines - Ansible

Hey @Karthik, you don't really have to ...READ MORE

Feb 9, 2019 in Ansible by Monish
745 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
741 views
0 votes
1 answer

How do I manage Server Load balancing on A10 network? - Ansible

Hey @Tanishq, you can use the a10_server ...READ MORE

Feb 11, 2019 in Ansible by Myra
740 views
0 votes
1 answer
0 votes
1 answer

Error when executing ansible playbook on Azure

Hey @Ganga, As the error message says, ...READ MORE

Jan 29, 2019 in Ansible by Kavya
731 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
727 views
0 votes
0 answers

How to write a playbook for websphere deployment?

Oct 19, 2019 in Ansible by Rajendra
• 510 points
722 views
0 votes
1 answer

How to create ECS service on VPC network using Ansible Playbook?

Hi@akhtar, An Amazon ECS service enables you to run and ...READ MORE

Dec 4, 2020 in Ansible by MD
• 95,440 points
708 views
0 votes
1 answer

Error while installing Ansible on Azure

There are few dependencies that you need ...READ MORE

Mar 26, 2019 in Ansible by Derryl
708 views
0 votes
1 answer

Error saying "ERROR: ufw is not a legal parameter in an Ansible task or handler"

Hey @Neel, you're probably running an older ...READ MORE

Feb 4, 2019 in Ansible by Diana
708 views
0 votes
1 answer

Issue while using lineinfile module - Ansible

The lineinfile task has to match both the ...READ MORE

Jan 17, 2019 in Ansible by Lavanya
707 views
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,440 points
695 views
0 votes
1 answer

Ansible and NetApp provisioning

Ansible and NetApp hopped in as one ...READ MORE

Jan 25, 2019 in Ansible by Vivan
693 views
0 votes
1 answer

What are the different types of plugins available in Ansible?

Ansible provides a huge variety of plugins ...READ MORE

Feb 19, 2019 in Ansible by Priya
689 views
0 votes
1 answer

Where to find inventory file? - Kubespray

By default its located in /etc/ansible/hosts. You can ...READ MORE

Jan 23, 2019 in Ansible by Noor
684 views
0 votes
1 answer

Add authorized key taken from a URL - Ansible

Hey @Lopez, you can use the authorized_key ...READ MORE

Feb 12, 2019 in Ansible by Charlie
680 views
0 votes
1 answer

Error saying "KeyError: 'ApiVersion'" - Ansible

The reason behind this error is that ...READ MORE

Jan 8, 2019 in Ansible by Sasha
676 views
0 votes
1 answer

Setup custom logo in Ansible Tower

Hey @Anjlai, Go to setting menu, navigate ...READ MORE

Feb 4, 2019 in Ansible by Kyraa
669 views
0 votes
1 answer

How do I handle different machines needing different user accounts or ports to log in with?

Setting inventory variables in the inventory file ...READ MORE

Jan 31, 2019 in Ansible by Ansi
666 views
0 votes
1 answer

How can I create a new user using ansible ploybook?

You're switching from the root user. Root ...READ MORE

Mar 29, 2018 in Ansible by DareDev
• 6,890 points
664 views
0 votes
1 answer

Encrypting few variables and embedding them in playbook

Hey @Camron, you can just encrypt those ...READ MORE

Mar 7, 2019 in Ansible by Fez
663 views
0 votes
1 answer

What are the system requirements I need to fulfill for the ec2_vpc_subnet module to work - Ansible

The below requirements are needed on the ...READ MORE

Feb 8, 2019 in Ansible by Dee
662 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,440 points
661 views
0 votes
1 answer

what does ansible-vault edit command do?

Hey @Faizal, your worry is obvious in ...READ MORE

Feb 11, 2019 in Ansible by Mariam
651 views
0 votes
1 answer

Ansible roles change workflow order by moving handlers.

Flush handlers with meta: flush_handlers before the task that ...READ MORE

Mar 12, 2019 in Ansible by William
646 views
0 votes
1 answer

Return values of Ansible Commands

Hey @Rani, you could try something like ...READ MORE

Apr 2, 2019 in Ansible by Alia
645 views
0 votes
1 answer

How do I copy files from my system desktop to my EC2 instance?

One of the ways is to upload ...READ MORE

Mar 5, 2019 in Ansible by Kyraa
639 views
0 votes
0 answers

How get_facts or show commands on A10 network? - Ansible

I'm a network engineer leveraging the A10s ...READ MORE

Apr 23, 2019 in Ansible by David
• 120 points
637 views
0 votes
1 answer

unable to build grails war on a vagrant machine using ansible

Try and run the command using shell ...READ MORE

Jul 2, 2018 in Ansible by ajs3033
• 7,300 points
637 views