8a6af30c98
subrepo: subdir: "dotfiles/.vim/plugged/ansible-vim" merged: "93798e8c8" upstream: origin: "https://github.com/pearofducks/ansible-vim.git" branch: "master" commit: "93798e8c8" git-subrepo: version: "0.4.3" origin: "???" commit: "???" |
||
---|---|---|
.. | ||
.gitignore | ||
generate.py | ||
generate.sh | ||
README.md |
Generate Snippets Based on Ansible Modules
A script to generate UltiSnips
based on ansible code on the fly.
Note: Requires Ansible 2.4 or later.
Script parameters
There are a couple of optional arguments for the script.
- --output: Output filename (Default: ansible.snippets)
- --style: YAML formatting style for snippets Choices: multiline (default), dictionary
- --sort: Whether to sort module arguments (default: no)
For Users
We display option description somewhere, however, there are some special formatters in it.
For your reference, we list them here and you can find them under /ansible/repo/hacking/module_formatter.py
:
- I: Italic
- B: Bold
- M: Module
- U: URL
- C: Const
For Developers
pip install ansible
first
Thanks
- Based on (ansible)[https://github.com/ansible/ansible] Awesome Documentation
- Inspired by bleader/ansible_snippet_generator