blob: 40e6d9ebe5fa5ec6b8b223d8f1b052478c3737b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
post_install () {
cat << EOF
==> Add this code to your .emacs file to use the mode:
(require 'ansible)
(add-hook 'yaml-mode-hook '(lambda () (ansible 1)))
==> Set the path to your vault password file ("~/vault_pass" by default):
(setq ansible::vault-password-file "path/to/pwd/file")
==> Optionally, use the following to auto decrypt/encrypt vault files:
(add-hook 'ansible-hook 'ansible::auto-decrypt-encrypt)
==> Or do the above with use-package:
(use-package ansible
:config
(add-hook 'yaml-mode-hook '(lambda () (ansible 1)))
(setq ansible::vault-password-file "path/to/pwd/file") ; If not in the default location
(add-hook 'ansible-hook 'ansible::auto-decrypt-encrypt)) ; For auto de/encryption
EOF
}
post_upgrade () {
post_install $1
}
|