Skip to content

diamond-lizard/emacs-ansible

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Emacs Lisp 91.9%
  • Ruby 8.1%