From e265aec440a1f3ec9a50756a07e090a84ec7a559 Mon Sep 17 00:00:00 2001
From: Benjamin Bertrand <benjamin.bertrand@esss.se>
Date: Thu, 9 May 2019 10:14:23 +0200
Subject: [PATCH] Improve documentation

---
 docs/network.rst | 19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)

diff --git a/docs/network.rst b/docs/network.rst
index 6b30fe9..c3a39ef 100644
--- a/docs/network.rst
+++ b/docs/network.rst
@@ -227,21 +227,26 @@ Encrypted variables
 ~~~~~~~~~~~~~~~~~~~
 
 `Ansible vault`_ allows to create encrypted variables to embed in yaml using the `ansible-vault encrypt_string`_ command.
+In the following example *myvariable* is the name of the variable and *acomplexpassword* the secret to encrypt (the content
+of the variable).
 
 ::
 
-    $ ansible-vault encrypt_string -n mypassord acomplexpassword
+    $ ansible-vault encrypt_string -n myvariable acomplexpassword
     New Vault password:
     Confirm New Vault password:
-    mypassord: !vault |
+    myvariable: !vault |
               $ANSIBLE_VAULT;1.1;AES256
-              33383731306533343464396365336135653261316639643937326134313430313833316438633238
-              3237613332396239363134346462653831626237663231360a356235306262333634653036336236
-              32333435306334343839353664396165343861373333613830383762393734393434346633653839
-              6139663637336462330a316366326461633964386135346239303338366237383561643034353263
-              66623362333866373530316437366564303332353032643961663435343939633164
+              35643065323939633063303738656432333664613764326566663132313962363037663637363161
+              3435383964313936313365366433633139323363393762310a626338663237313063353462623933
+              37336566633161303538323934626162626262356337636565353835393538643564343331306338
+              3333316434353931640a386563353131386437376233376362663764633338373530393936353163
+              39366637633336316239306466643637383165343936623864386366663631363837
     Encryption successful
 
+Note that if you exported the **ANSIBLE_VAULT_PASSWORD_FILE** environment variable,
+you won't be prompted for the vault password.
+
 You can directly copy/paste the result of the command to CSEntry:
 
 .. image:: _static/ansible/enter_vault_variable.png
-- 
GitLab