Trending questions in Ansible

0 votes
1 answer
0 votes
1 answer

Error: Failed to get data from the API server - when trying to create a new role structure using ansible galaxy

Check your python version. It should be ...READ MORE

Mar 14, 2019 in Ansible by Haider
1,407 views
0 votes
0 answers

Error while executing playbook to start ec2 instance

I have a playbook that starts an ...READ MORE

Mar 29, 2019 in Ansible by Kalgi
770 views
0 votes
1 answer

Playbook to start ec2 instance

- name: Create an ec2 instance ...READ MORE

Apr 9, 2019 in Ansible by Kalgi
286 views
0 votes
1 answer

Ansible Playbook for Creating a VM with OS and multiple data managed disks

Hey @Ammie, Try a playbook something like ...READ MORE

Mar 27, 2019 in Ansible by Stark
812 views
0 votes
1 answer

How do I add apt key by id from a keyserver? - Ansible

Hey @Altis, you can use the module ...READ MORE

Feb 11, 2019 in Ansible by Kyra
2,683 views
0 votes
1 answer

Error while running playbook consisting of roles - Ansible

You get this error because ansible was ...READ MORE

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

Iterate over containerInstance feild?

Try something like this: - name: List jenkins ...READ MORE

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

Run bundle install inside rvm - Ansible roles

Example config installing ruby system-wide ripped right ...READ MORE

Mar 13, 2019 in Ansible by Kim
1,289 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
428 views
0 votes
1 answer

How to remove cron using Ansible

Hey @Likhit, You could use something like ...READ MORE

Jan 29, 2019 in Ansible by Kavya
3,143 views
0 votes
1 answer

Requirements to run Ansible with Jenkins

These are the only requirements for running ...READ MORE

Apr 4, 2019 in Ansible by Himanshu
292 views
0 votes
1 answer

Error saying "No handler was ready to authenticate. 1 handlers were checked"

You are mixing underscore and hyphen. cat /etc/ansible/ec2-vars/te ...READ MORE

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

How do i tie Ansible's inventory to cobbler?

To tie Ansible’s inventory to Cobbler, copy this ...READ MORE

Mar 24, 2019 in Ansible by Aleesha
745 views
0 votes
1 answer

Create Network Load Balancer on AWS using Ansible

Hey @Neha, you can create NLB using ...READ MORE

Mar 24, 2019 in Ansible by Arc
726 views
0 votes
1 answer

Remote host throwing error saying "Permission Denied" - Ansible

Hey @Patrick, Change the path of Ansible's remote_tmp ...READ MORE

Jan 16, 2019 in Ansible by Cerci
3,604 views
0 votes
1 answer

Playbook to get my current IP - Ansible and AWS

Hey Komal, that's pretty simple. Try this: - ...READ MORE

Mar 24, 2019 in Ansible by Aarohi
711 views
0 votes
1 answer

When to use Ansible work with Jenkins?

If your deployment and machine environment are ...READ MORE

Apr 4, 2019 in Ansible by Anand
227 views
0 votes
1 answer

What are the requirements to run Anible on Azure?

Using the Azure Resource Manager modules requires ...READ MORE

Apr 5, 2019 in Ansible by ZA
183 views
0 votes
1 answer

How is Jenkins used with Ansible?

Jenkins can be used as an interface ...READ MORE

Apr 4, 2019 in Ansible by Ashish
222 views
0 votes
1 answer

aws_ssm module in Ansible

According to the official docs, this module ...READ MORE

Mar 24, 2019 in Ansible by Yesha
688 views
0 votes
1 answer

How do I wget a file from web server using shell in the ansible playbook

Hey Ayaan, you could probably use this ...READ MORE

Jan 24, 2019 in Ansible by Anushri
3,191 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
633 views
0 votes
1 answer

Playbook to create VM with existing storage account on Azure

Hey @Layla, try something like this: - name: ...READ MORE

Mar 27, 2019 in Ansible by Barbara
521 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
604 views
0 votes
2 answers

Control machine requirements for Installing Ansible

Ansible can be run from any machine ...READ MORE

May 13, 2019 in Ansible by anonymous
1,026 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
438 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
437 views
0 votes
1 answer

Pass multiple password files while running ansible playbook

Hey @Neha, you can pass your password ...READ MORE

Mar 6, 2019 in Ansible by Yesha
1,296 views
0 votes
1 answer

Ansible vs Ansible Tower

Ansible is CM tool and orchestration engine. ...READ MORE

Jan 28, 2019 in Ansible by Haider
2,894 views
0 votes
1 answer

Playbook to Create a VM with OS and multiple data storage accounts

Hey @Neha, you can write a task ...READ MORE

Mar 27, 2019 in Ansible by Frankie
304 views
0 votes
1 answer

Error saying "One or more undefined variables: 'ansible_facts' is undefined"

The command you've executed basically means run ...READ MORE

Jan 17, 2019 in Ansible by Karen
3,306 views
0 votes
1 answer

Password prompt everytime I run a playbook is annoying

So Ansible provides a feature called vault ...READ MORE

Mar 7, 2019 in Ansible by William
1,176 views
0 votes
1 answer

Failed to mkdir while creating a handler directory - Ansible

Hey @Ali, try running it as a ...READ MORE

Mar 14, 2019 in Ansible by Bob
804 views
0 votes
1 answer

How to configure fact caching in Ansible?

There are two cache plugins: redis and jsonfile. To ...READ MORE

Jan 24, 2019 in Ansible by Kennedy
2,907 views
0 votes
1 answer

Requirements to used aws_ssm module

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

Mar 24, 2019 in Ansible by Hitesh
367 views
0 votes
1 answer

Install mean stack on ubuntu using ansible

You can have three roles  under /etc/ansible/roles -prerequisites -mongodb -nodejs under /etc/ansible ...READ MORE

Mar 15, 2019 in Ansible by Janice
742 views
0 votes
1 answer

aws_ssm parameter values

This module provided by aws is used ...READ MORE

Mar 24, 2019 in Ansible by Hannah
357 views
0 votes
1 answer

How do I access shell environment variables using Ansible Playbook

Hey @Tina, If you need to access ...READ MORE

Jan 31, 2019 in Ansible by Mahir
2,628 views
0 votes
1 answer

print basic boto debug message

Debug Controls the level of debug messages ...READ MORE

Mar 26, 2019 in Ansible by Raymond
256 views
0 votes
1 answer

Hey I'm trying to execute a playbook but I get the following error:

Hey, you have a syntax error as ...READ MORE

Mar 26, 2019 in Ansible by Kalgi
• 52,350 points
263 views
0 votes
1 answer

Playbook to wait for servers to come online - Ansible

Hey @Dipti, try something like this: - name: ...READ MORE

Mar 26, 2019 in Ansible by Jaz
271 views
0 votes
1 answer

How do I disable cowsay?

You can uninstall cowsay by setting nocows=1 in ansible.cfg, or ...READ MORE

Jan 31, 2019 in Ansible by Mahir
2,590 views
0 votes
1 answer

Playbook to create availability disk for a VM

Hey @Chandan, try something like this: - name: ...READ MORE

Mar 27, 2019 in Ansible by Harsh
210 views
0 votes
1 answer

No debug messages from boto to be printed

Debug Controls the level of debug messages ...READ MORE

Mar 26, 2019 in Ansible by Raymond
203 views
0 votes
1 answer

Playbook to add ec2 instance to ELB

Hey, @Kishore, try something like this: - hosts: ...READ MORE

Mar 26, 2019 in Ansible by Yesha
228 views
0 votes
1 answer

Is there any way to encrypt --private-key with ansible-vault and use it encrypted with Ansible Playbook

Hey @Kajol, Create a passphrase for the key openssl ...READ MORE

Jan 29, 2019 in Ansible by Anupam
2,607 views
0 votes
1 answer

Error saying "Invalid input (privileged mode required)" - Ansible

The task that generated this error requires to enable mode ...READ MORE

Mar 6, 2019 in Ansible by Yogesh
965 views
0 votes
1 answer

Error while copying files using ansible role.

Add the following as an argument to ...READ MORE

Mar 14, 2019 in Ansible by Yesha
602 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
619 views