Most voted questions in Ansible

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
3,256 views
0 votes
1 answer

How do I see all the inventory variables defined for my host?

Hey @Junaid, You can see all the ...READ MORE

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

How do I get a list of all Ansible variables?

Ansible by default gathers facts about machines ...READ MORE

Jan 31, 2019 in Ansible by Mahir
5,679 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
3,935 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,790 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
678 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
3,060 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
2,719 views
0 votes
1 answer

How to set vault password on ansible tower?

On Ansible Tower, go to Settings > ...READ MORE

Jan 29, 2019 in Ansible by Yesha
5,831 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,124 views
0 votes
1 answer

Error while using ansible vault "ERROR! input is not vault encrypted data for vars/vars-mysql-config.yml"

Hey @Bhupan, I think your file is ...READ MORE

Jan 29, 2019 in Ansible by Kavya
6,011 views
0 votes
1 answer

Encrypt an encrypted file - Ansible Vault

Hey @Fez, This is one of the way ...READ MORE

Jan 29, 2019 in Ansible by Cerci
483 views
0 votes
1 answer

Upload encrypted file using ansible vault?

You can do this, make your playbook ...READ MORE

Jan 29, 2019 in Ansible by Faizal
854 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,082 views
0 votes
1 answer

What is Ansible Vault?

Vault is something that holds the encrypted ...READ MORE

Jan 29, 2019 in Ansible by Kavya
554 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
2,346 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
771 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
3,138 views
0 votes
1 answer

What files can be encrypted using the Ansible Vault?

Yes @Umang, Ansible Vault is used to ...READ MORE

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

Encryption using vault

Hey @Neha, unfortunately, that's not possible. You ...READ MORE

Jan 29, 2019 in Ansible by Nish
344 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,004 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
4,238 views
0 votes
1 answer

where to install Ansible galaxy?

Hey Gayatri, This can be done with ...READ MORE

Jan 29, 2019 in Ansible by Kavya
545 views
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
753 views
0 votes
1 answer

Error saying "ERROR: sudo_pass is not a legal parameter at this level in an Ansible Playbook"

Here sudo_pass is where you're going wrong. ...READ MORE

Jan 29, 2019 in Ansible by Hatim
956 views
0 votes
1 answer

lookup_plug in file too distributed

Hey @laksha, you can wrap it into ...READ MORE

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

lookup_plugins directory in Ansible

Hey @Ruth, check one of these places: check ...READ MORE

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

User on the target VM - Ansible

Yes @Nisha, You can run a shell ...READ MORE

Jan 28, 2019 in Ansible by Kavya
575 views
0 votes
1 answer

Error saying "ERROR! Unexpected Exception: 'module' object has no attribute '_vendor'"

Ansible is highly dependant on the python ...READ MORE

Jan 28, 2019 in Ansible by Varsha
1,906 views
0 votes
2 answers

Error saying "ImportError: No module named yaml"

actually this related python pckage in order ...READ MORE

Jul 18, 2020 in Ansible by shivanand
16,810 views
0 votes
1 answer

Error when installing a role - Ansible

The yaml python package is provided by the PyYAML pip ...READ MORE

Jan 28, 2019 in Ansible by Fez
862 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
3,349 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
808 views
0 votes
1 answer

Virtualization Infrastructure supported by Ansible

Yes, Vagrant supports Ansible, in-fact Ansible is ...READ MORE

Jan 25, 2019 in Ansible by Sai
581 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
708 views
0 votes
1 answer

Use cases of modernizing and automating workflow

Of course automation is being used everywhere and ...READ MORE

Jan 25, 2019 in Ansible by Wong
1,206 views
0 votes
1 answer

Ansible use cases

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

Jan 25, 2019 in Ansible by Chester
2,448 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
3,108 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
3,786 views
0 votes
1 answer

Define variables in Ansible Playbook

Variable names should be letters, numbers, and ...READ MORE

Jan 24, 2019 in Ansible by Jinha
1,147 views
0 votes
1 answer

How do i get Ansible predefined variables?

There three types of variables variables gathered from ...READ MORE

Jan 24, 2019 in Ansible by Parth
1,351 views
0 votes
1 answer

Access Inventory file - Ansible

You can just use {{ ansible_ssh_host }} Inventory: [my_hosts] my_host ansible_ssh_host=127.0.0.1 ...READ MORE

Jan 24, 2019 in Ansible by Akansha
856 views
0 votes
1 answer

Execute shell commands using Ansible

You can use a playbook for this ...READ MORE

Jan 24, 2019 in Ansible by Ayaan
5,175 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
2,071 views
0 votes
1 answer

Print multiple env variables using ansible playbook

Hey @Tom, you can use the lookup ...READ MORE

Jan 24, 2019 in Ansible by Rick
5,177 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,151 views
0 votes
1 answer

How to use get_url on windows - Ansible

Hey @Biji, you could use the win_get_url ...READ MORE

Jan 24, 2019 in Ansible by Olly
4,172 views
0 votes
1 answer

Create directories and download files in Ansible using Ansible playbook

Hey @Yash,  you could either use file module ...READ MORE

Jan 24, 2019 in Ansible by Cerdin
5,462 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,897 views
0 votes
1 answer

Ansible playbook to automate security configurations of an EC2 instance

Hey @Kiara, your indentation is very wrong. ...READ MORE

Jan 24, 2019 in Ansible by Harsh
605 views