Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dict
lib
snippets Update to 1.8.1 Dec 2, 2014
.gitmodules
README.md
ansible.el

README.md

Ansible minor mode

Requirement

  • yasnippet
  • auto-complete

Installation

It's available on Melpa

M-x package-install ansible

Usage

Enable minor mode

M-x ansible

or hook

(add-hook 'yaml-mode-hook '(lambda () (ansible 1)))

Snippets for yasnippet

  • Ansible module snippet

Dictionary for auto-complete

  • Ansible module key dictionary

Ansible Vault support

Set up a password in ansible::vault-password-file: (default value: "~/vault_pass")

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

Bind keys:

(global-set-key (kbd "C-c b") 'ansible::decrypt-buffer)
(global-set-key (kbd "C-c g") 'ansible::encrypt-buffer)

You can also set automatic {en,de}cryption by adding ansible::auto-decrypt-encrypt to ansible-hook:

(add-hook 'ansible-hook 'ansible::auto-decrypt-encrypt)
You can’t perform that action at this time.