Change Ansible Vault editor from vi to nano

0 votes
Every time I create an encrypted file or open an encrypted file for editing, it open in vi editor. Then later I realized that vi is the default editor. How do I change it to nano? Is it possible?
Mar 5, 2019 in Ansible by Adi
17,020 views

1 answer to this question.

0 votes

By default, the editor used by the vault is vi. Follow these steps to change it to nano:

open your ~/.bashrc file:

nano ~/.bashrc

Add the following line:

export EDITOR=nano

Save and close

And you're done!

Hope it helped:)

answered Mar 5, 2019 by Yogesh

Related Questions In Ansible

0 votes
1 answer

How to change vault password in Ansible?

Hi@akhtar, You can use rekey keyword in your ...READ MORE

answered Aug 11, 2020 in Ansible by MD
• 95,460 points
12,923 views
0 votes
1 answer
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

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

Ansible playbook for moving files from one node to another remote node

The best way to do this is: copy ...READ MORE

answered Jan 16, 2019 in Ansible by Nigya

edited Jan 18, 2019 by Vardhan 9,544 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,035 views
+2 votes
1 answer
0 votes
1 answer

How to create a new encrpted file using Ansible Vault?

If you are creating a new file ...READ MORE

answered Jan 29, 2019 in Ansible by Kyraa
1,029 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP