Trending questions in Ansible

0 votes
1 answer

Clear the entire provision setup if fails to execute even a single command

Of course this is possible @Kiara, you ...READ MORE

Feb 7, 2019 in Ansible by Pragya
519 views
0 votes
1 answer

Get ports using vagrant

You can get the correct ports using ...READ MORE

Feb 4, 2019 in Ansible by Husna
633 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
851 views
0 votes
1 answer

How do I backup my ansible playbooks?

In addition to the install.yml file included with your setup.sh setup ...READ MORE

Feb 4, 2019 in Ansible by Anushri
590 views
0 votes
1 answer

Error saying "No packages marked for update" when trying to install ansible using yum

If you're just trying to upgrade to ...READ MORE

Jan 14, 2019 in Ansible by Nippun
1,482 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
858 views
0 votes
1 answer

Configuration for setting up windows VM using ansible and vagrant

Hey @Leena,  your configuration file group_vars/windows-dev should contain something like: ansible_user: ...READ MORE

Feb 4, 2019 in Ansible by Vaishu
535 views
0 votes
1 answer

Running Ansible Bash profile shows messages everytime a terminal is opened

Change the bash profile to read like ...READ MORE

Jan 14, 2019 in Ansible by Cobe
1,439 views
0 votes
1 answer

Filter lists by attributes - Ansible

Filter the dicts using selectattr_filter in combination with ...READ MORE

Jan 14, 2019 in Ansible by Haider
1,428 views
0 votes
1 answer

Considerations when dealing with backup and restoration - Ansible

Hey @Ruth, keep these following factors in ...READ MORE

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

Playbook executed fine but output not as expected

Hey @Nisha, you've mentioned this line on ...READ MORE

Feb 7, 2019 in Ansible by Pragya
367 views
0 votes
1 answer

Get rid of fake error logs

These two modules : failed_when and changed_when ...READ MORE

Feb 7, 2019 in Ansible by Pragya
356 views
0 votes
1 answer

Run Ansible adhoc commands in sequence

Hey @Thomas, by default ansible runs these ...READ MORE

Jan 14, 2019 in Ansible by Barbara
1,372 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
676 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
750 views
0 votes
1 answer

Restoring to an existing environment - Ansible

The restore contains the following: Dump of the ...READ MORE

Feb 4, 2019 in Ansible by Anushri
425 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
854 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
806 views
0 votes
1 answer

Install snap

There is no snap module for ansible ...READ MORE

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

Restoring to a different cluster - Ansible

Hey @Kiara, When you try to restore ...READ MORE

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

How do I improve performance for network playbooks?

Hey @Anjali, these are few of the ...READ MORE

Feb 1, 2019 in Ansible by Ani
525 views
0 votes
1 answer

Execute ansible playbook periodically

You could use include_role, according to the ...READ MORE

Jan 17, 2019 in Ansible by Kevin
1,108 views
0 votes
1 answer

perform ansible task with variable undefines

Hey @Laksha, If a variable has not been set, ...READ MORE

Feb 4, 2019 in Ansible by Anushri
330 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
550 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
550 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
705 views
0 votes
1 answer

lineinfile module in Ansible

You can use the lineinfile module for ...READ MORE

Jan 17, 2019 in Ansible by Emily
1,092 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
782 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
573 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
543 views
0 votes
1 answer

Configuring SSH Access to the Ansible Hosts

Hey @Shakira, follow these steps: Execute the following ...READ MORE

Jan 17, 2019 in Ansible by Sam
1,026 views
0 votes
1 answer

ignore_errors : true does not work as expected

Hey @Ali,  You can use the flag ignore_errors ...READ MORE

Jan 9, 2019 in Ansible by Lisa
1,403 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
791 views
0 votes
1 answer

Install Ansible on Hp UX

Hey @Diana, You cannot use HP -UX as ...READ MORE

Jan 10, 2019 in Ansible by Niks
1,304 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
481 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
699 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
577 views
0 votes
1 answer

Is it possible to run commands on ansible host?

If you just trying to run a ...READ MORE

Jan 10, 2019 in Ansible by Vijay
1,265 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
603 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
339 views
0 votes
1 answer

Mention Kubernetes version while using it with ansible

Hey @Dustin, The default value for roles is kube_version: ...READ MORE

Jan 22, 2019 in Ansible by Anushri
624 views
0 votes
1 answer

Add a node in Ansible

Follow these steps @Ruth: Generate ssh key ssh-keygen Check the ...READ MORE

Jan 8, 2019 in Ansible by Haider
1,169 views
0 votes
1 answer

Install snap for Kubernetes cluster automation

Hey @Mohit, there is no snap module ...READ MORE

Jan 22, 2019 in Ansible by Veronica
533 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
726 views
0 votes
1 answer

Create a directory at a specific path using ansible

To create a directory using Ansible, you ...READ MORE

Jan 9, 2019 in Ansible by Jason
996 views
0 votes
2 answers

Execution of Ansible playbook now reflecting any changes

Hey @Moana, you playbook is missing the ...READ MORE

Jan 17, 2019 in Ansible by Sameer
567 views
0 votes
2 answers

How do you stop Ansible from creating .retry files in the home directory?

[defaults] ... retry_files_enabled = True # Create them ...READ MORE

Apr 5, 2019 in Ansible by anonymous
2,968 views
0 votes
1 answer

Advantages of using Ansible?

Ansible has a lot of advantages, like ...READ MORE

Jan 8, 2019 in Ansible by Thomas
858 views