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
94 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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
49 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 370 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
140 views
+13 votes
2 answers
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.