Trending questions in Ansible

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
5,368 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
3,498 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
5,870 views
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
3,393 views
0 votes
1 answer

Boto config file on Linux

Hey @Hari, your boto config file could ...READ MORE

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

Permission denied while running the playbook

Hey @Hari, try executing your playbook using ...READ MORE

Feb 9, 2019 in Ansible by Monish
4,781 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
4,582 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
1,537 views
0 votes
1 answer

Is it possible to run a playbook with a crontab?

Ofcourse you can run ansible playbook with ...READ MORE

Jan 17, 2019 in Ansible by Yesha
5,527 views
0 votes
1 answer

Check for certain package with specific version exists - Ansible

Hey @Kavya, to check if a package ...READ MORE

Mar 6, 2019 in Ansible by Devika
3,438 views
0 votes
1 answer

Get ansible commands return value

Hey @Hina, you can add the following ...READ MORE

Feb 4, 2019 in Ansible by Diana
4,721 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
5,536 views
0 votes
1 answer

How do I update CentOS using Ansible?

You can use the yum module in the ...READ MORE

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

Unarchive module overwriting - Ansible

Hey @joe, you can use the create option, ...READ MORE

Jan 30, 2019 in Ansible by Khadeer
4,822 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
2,915 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
2,436 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
4,983 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
2,299 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
2,891 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
1,735 views
0 votes
1 answer
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
2,339 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
1,676 views
0 votes
1 answer

Print all boto debug and request/response message from boto and httplib

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

Mar 26, 2019 in Ansible by Raymond
2,168 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
4,770 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
2,691 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
4,426 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
2,078 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
2,836 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
2,060 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
1,939 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
2,461 views
0 votes
1 answer

Ansible playbbok to copy files from one node to another remote node

You can create a playbook for copying ...READ MORE

Jan 16, 2019 in Ansible by Danica
4,905 views
0 votes
1 answer

Playbook to start ec2 instance

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

Apr 9, 2019 in Ansible by Kalgi
1,321 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
2,356 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
2,681 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
1,384 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
1,762 views
0 votes
1 answer

Playbook to backup all mysql databases

Hey @Ruth, you could use a playbook, ...READ MORE

Feb 4, 2019 in Ansible by Anushri
3,928 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
1,371 views
0 votes
1 answer

Multilines in shell script inside Ansible playbook

You could write your playbook in this ...READ MORE

Jan 25, 2019 in Ansible by Donna
4,380 views
0 votes
1 answer

How to encrypt and existing file using Ansible Vault?

Hey @Kyraa, to encrypt an existing file ...READ MORE

Jan 29, 2019 in Ansible by Kavya
4,175 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
4,235 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
1,664 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
4,117 views
0 votes
1 answer

Check status of an operation running in the background - Ansible

Hey @Neel, According to the documentation, Long running ...READ MORE

Mar 6, 2019 in Ansible by Yesha
2,571 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
1,784 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
1,382 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
1,293 views