Fix ansible layer typos

This commit is contained in:
Jody Frankowski 2017-04-19 21:44:49 +02:00 committed by syl20bnr
parent b16f330fec
commit 7c9dcbfba4
3 changed files with 7 additions and 7 deletions

View File

@ -8,7 +8,7 @@
- [[#configuration][Configuration]]
- [[#ansible-vault][ansible-vault]]
- [[#password][Password]]
- [[#automatic-encryption-and-descryption][Automatic encryption and descryption]]
- [[#automatic-encryption-and-decryption][Automatic encryption and decryption]]
- [[#key-bindings][Key bindings]]
* Description
@ -23,7 +23,7 @@ file.
** ansible-vault
*** Password
To use =ansible-vault= you have to provide the path to a file containing the
password to use somewhere in you =dotspacemacs/user-config= function.
password to use somewhere in your =dotspacemacs/user-config= function.
For instance:
#+BEGIN_SRC emacs-lisp
@ -44,16 +44,16 @@ password file for a given environment. Example:
((yaml-mode . ((ansible::vault-password-file . "path/to/vault_file"))))
#+END_SRC
*** Automatic encryption and descryption
*** Automatic encryption and decryption
This layer comes preconfigured with automatic encryption/decryption of
encrypted files using =ansible-vault= so it is possible to edit seamlessly
any encrypted files.
If you want to disable this feature then set the layer variable
=ansible-auto-encrypt-descrypt= to =nil=.
=ansible-auto-encrypt-decrypt= to =nil=.
#+BEGIN_SRC emacs-lisp
(ansible :variables ansible-auto-encrypt-descrypt t)
(ansible :variables ansible-auto-encrypt-decrypt t)
#+END_SRC
* Key bindings

View File

@ -11,7 +11,7 @@
;; variables
(defvar ansible-auto-encrypt-descrypt t
(defvar ansible-auto-encrypt-decrypt t
"Set it to non-nil to seamlessly edit `ansible-vault' encrypted files.
If non-nil then encrypted files are automatically decrypted when opened and
encrypted when saved.")

View File

@ -23,7 +23,7 @@
(progn
(add-hook 'yaml-mode-hook 'spacemacs/ansible-maybe-enable)
(put 'ansible::vault-password-file 'safe-local-variable #'stringp)
(if ansible-auto-encrypt-descrypt
(if ansible-auto-encrypt-decrypt
;; add this hook to local-vars-hook to allow users to specify
;; a password file in directory local variables
(add-hook 'yaml-mode-local-vars-hook 'ansible::auto-decrypt-encrypt)