This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/layers/+tools/ansible
2016-12-16 09:17:05 -05:00
..
img Replace +config-files category by +tools category 2016-06-09 23:56:09 -04:00
config.el ansible: add support for company-ansible and ansible-vault 2016-12-16 08:57:45 -05:00
funcs.el ansible: temporary hack to fix modified buffer on decryption 2016-12-16 09:17:05 -05:00
layers.el core: better behavior for dotspacemacs-download-packages 2016-08-19 21:04:33 -03:00
packages.el ansible: temporary hack to fix modified buffer on decryption 2016-12-16 09:17:05 -05:00
README.org ansible: add support for company-ansible and ansible-vault 2016-12-16 08:57:45 -05:00

Ansible layer

/TakeV/spacemacs/media/commit/0d6c378a516caa433754969280bf279173f47fb9/layers/+tools/ansible/img/ansible.png

Description

This layer adds support for Ansible-flavored YAML buffers and Jinja2 templates.

Install

To use this configuration layer, add it to your ~/.spacemacs. You will need to add ansible to the existing dotspacemacs-configuration-layers list in this file.

Configuration

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. For instance:

(setq ansible::vault-password-file "path/to/pwd/file")

The default value is the ansible-vault default value: ~/.vault_pass.txt.

Automatic encryption and descryption

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 :variables ansible-auto-encrypt-descrypt t)

Key bindings

Key Binding Description
SPC m b d encrypt the buffer using ansible-vault
SPC m b e decrypt the buffer using ansible-vault
SPC m h a looks up documentation using ansible-doc