Skip to content

Instantly share code, notes, and snippets.

View tridevgurung's full-sized avatar

Tridev Gurung tridevgurung

View GitHub Profile
@tridevgurung
tridevgurung / Ansible-Vault how-to.md
Created March 18, 2016 05:17 — forked from tristanfisher/Ansible-Vault how-to.md
A short tutorial on how to use Vault in your Ansible workflow. Ansible-vault allows you to more safely store sensitive information in a source code repository or on disk.

##Working with ansible-vault

I've been using a lot of Ansible lately and while almost everything has been great, finding a clean way to implement ansible-vault wasn't immediately apparent.

What I decided on was the following: put your secret information into a vars file, reference that vars file from your task, and encrypt the whole vars file using ansible-vault encrypt.

Let's use an example: You're writing an Ansible role and want to encrypt the spoiler for the movie Aliens.

@tridevgurung
tridevgurung / maya
Created June 27, 2013 04:11 — forked from thapakazi/maya
# असारको माया
यो माया भन्‍ने चिज कस्तो
गर्मीमा घाम नलागेको जस्तो
लोडसेडीगमा tube-lite बाल्या जस्तो॥
यतिमात्र होईन, कि कसो,
गाईको दुध पनि कस्तो सस्तो
ncell को sim-card लिए जस्तो