Ansible Vim snippets for SnipMate and UltiSnips.
Depending on what plugin manager you are using, copy the appropiate lines and use the plugin's install command:
Plug 'phenomenes/ansible-snippets'
Plugin 'phenomenes/ansible-snippets'
NeoBundle 'phenomenes/ansible-snippets'
git clone https://github.com/phenomenes/ansible-snippets.git ~/.vim/bundle/terraform-snippets
This repo follows ansible's devel
branch, if you wish to install a different version you need to specify the
corresponding tag.
Open a .yml
or .yaml
file, in insert mode type play
or any Ansible's
module name and press <tab>
to expand the snippet:
- hosts: group
user: root
tasks:
- name: task_description
ec2:
image: None
instance_type: None
#kernel:
#monitoring:
#user_data:
#termination_protection:
#private_ip:
#spot_type: one-time
#ec2_url:
#id:
#source_dest_check: True
#aws_secret_key:
#spot_wait_timeout: 600
...
Press <tab>
again to move to the next argument.
BSD 2-clause "Simplified" License