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 in Ansible by Adi
779 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 by Yogesh

Related Questions In Ansible

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 in Ansible by Danica
454 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 in Ansible by Nigya

edited Jan 18 by Vardhan 1,248 views
0 votes
1 answer

How to encrypt and existing file using Ansible Vault?

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

answered Jan 29 in Ansible by Kavya
575 views
+13 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
214 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer