install.fairie/dotfiles/.vim/plugged/ansible-vim/UltiSnips
Git E2E Dev Test Username 8a6af30c98 git subrepo clone https://github.com/pearofducks/ansible-vim.git ./dotfiles/.vim/plugged/ansible-vim
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:   "???"
2022-10-18 10:37:50 -04:00
..
.gitignore git subrepo clone https://github.com/pearofducks/ansible-vim.git ./dotfiles/.vim/plugged/ansible-vim 2022-10-18 10:37:50 -04:00
generate.py git subrepo clone https://github.com/pearofducks/ansible-vim.git ./dotfiles/.vim/plugged/ansible-vim 2022-10-18 10:37:50 -04:00
generate.sh git subrepo clone https://github.com/pearofducks/ansible-vim.git ./dotfiles/.vim/plugged/ansible-vim 2022-10-18 10:37:50 -04:00
README.md git subrepo clone https://github.com/pearofducks/ansible-vim.git ./dotfiles/.vim/plugged/ansible-vim 2022-10-18 10:37:50 -04:00

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