Trending questions in Ansible

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
1,361 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
1,485 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
3,790 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
941 views
0 votes
2 answers

How to enable Inventory Cache plugin in Ansible?

Adding to @Farookh's answer, if the inventory ...READ MORE

Feb 20, 2019 in Ansible by Shalaka
2,825 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
1,255 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,340 points
1,245 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
1,318 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
1,209 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
2,060 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
1,227 views
0 votes
1 answer

How does strategy : free improve performance for network playbook?

The strategy plugin tells Ansible how to order multiple ...READ MORE

Feb 1, 2019 in Ansible by Anisha
3,477 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
1,620 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
1,204 views
0 votes
1 answer

Error saying "FAILED! => {"changed": false, "failed": true, "msg": "the python pymongo module is required"}"

Hey @Monish I figured what my issue ...READ MORE

Feb 9, 2019 in Ansible by Manik
3,055 views
0 votes
1 answer

SSH encountered an unknown error during the connection - Ansible Error

I think you have not configured your ...READ MORE

Feb 9, 2019 in Ansible by Monish
3,052 views
0 votes
1 answer

How to run Ansible without hosts file?

Hey @Ruth, you can use ansible without using ...READ MORE

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

How to get details of playbook executions

Run these commands to enable logging before ...READ MORE

Jan 22, 2019 in Ansible by Tanishq
3,805 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
1,033 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
1,026 views
0 votes
1 answer

How do I use my static and dynamic inventory files together in an ansible playbook?

Add both your static and dynamic inventories ...READ MORE

Feb 9, 2019 in Ansible by Monish
2,936 views
0 votes
1 answer

How do i automatically install galaxy roles?

You should use a requirements.yml file for this use-case. ...READ MORE

Mar 12, 2019 in Ansible by William
1,580 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
907 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
1,726 views
0 votes
1 answer

CRC check failed error when pulling ansible role from git

You can try adding --no-wait option to the ansible-galaxy import call ...READ MORE

Mar 14, 2019 in Ansible by Kanika
1,423 views
0 votes
1 answer

Is there a way to recover lost Ansible Vault password?

Hey @Sridhar, There is no way to ...READ MORE

Jan 29, 2019 in Ansible by Akthia
3,304 views
0 votes
1 answer

View the encrypted file without decrypting - Ansible Vault

Hey @Laksha, you can view the file ...READ MORE

Mar 6, 2019 in Ansible by William
1,740 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
1,411 views
0 votes
1 answer

How do I install Ansible on windows?

Hi Neha, you cannot have an entire ...READ MORE

Feb 28, 2019 in Ansible by Kavya
1,985 views
0 votes
1 answer

What is vault id?

A vault id is an identifier for ...READ MORE

Mar 7, 2019 in Ansible by William
1,677 views
0 votes
2 answers

Encrypt a single variable using ansible Vault

Adding to @Zunaid's answer, this can also ...READ MORE

Jan 29, 2019 in Ansible by Sid
3,195 views
0 votes
1 answer

Manage large number of roles

I had close to 200 roles. All of ...READ MORE

Mar 13, 2019 in Ansible by Levin
1,322 views
0 votes
1 answer

Ansible playbook with jenkins not working

When you execute the playbook under Jenkins, ...READ MORE

Jan 17, 2019 in Ansible by Sameer
3,682 views
0 votes
1 answer

Error while installing ansible-galaxy on Mac

Run the following to upgrade setuptools under ...READ MORE

Mar 13, 2019 in Ansible by Haider
1,289 views
+1 vote
1 answer

Error saying "Package not a legal parameter in an Ansible task or a handler" - Ansible

This has been happening to a lot ...READ MORE

Jan 8, 2019 in Ansible by Takeshi
3,974 views
0 votes
1 answer

Organize roles - Ansible roles

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

Mar 13, 2019 in Ansible by Haider
1,198 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
1,221 views
0 votes
1 answer

Ansible use cases

There are 6 main places where ansible ...READ MORE

Jan 25, 2019 in Ansible by Chester
3,167 views
0 votes
1 answer

What are Action plugins in Ansible?

Action plugins work with the modules to ...READ MORE

Feb 19, 2019 in Ansible by Jobin
2,076 views
0 votes
1 answer

How do I get an ENV variable and store it into a local variable - Ansible

Hey @Ninja, that is possible. What you ...READ MORE

Jan 24, 2019 in Ansible by Thomas
3,209 views
0 votes
1 answer

Error saying "msg: unsupported parameter for module: deb"

Hey @Laksha, I think an older version ...READ MORE

Feb 1, 2019 in Ansible by Ansiha
2,853 views
0 votes
1 answer

What are Ad-Hoc commands?

Ad-Hoc command is something that you would ...READ MORE

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

Reset unreachable hosts - Ansible

If you try using the host that ...READ MORE

Feb 7, 2019 in Ansible by Yesha
2,571 views
0 votes
1 answer

My roles have a directory called files. What does it do?

This directory contains regular files that need ...READ MORE

Mar 13, 2019 in Ansible by Barbara
1,105 views
0 votes
1 answer

Creating non interactive ansible vault

Hey @Jolly,  You can use the --vault-password-file option for ansible-vault non-interactive ...READ MORE

Jan 29, 2019 in Ansible by Shah
2,900 views
0 votes
1 answer

Ensure the package is latest version - Ansible

Ensure a package is at the latest ...READ MORE

Mar 6, 2019 in Ansible by Yogesh
1,345 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
1,374 views
0 votes
1 answer

How do I enable sudo privileges in the playbook?

Hey @Kiran, to set enable mode for ...READ MORE

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

Why do people use Ansible roles?

Ansible roles are basically like functions in ...READ MORE

Mar 12, 2019 in Ansible by Yamini
958 views
0 votes
1 answer

Trying to execute bash script using Ansible one one node

You could make your task an asynchronous action by ...READ MORE

Jan 29, 2019 in Ansible by Kavya
2,744 views