Skip to content

phenomenes/ansible-snippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ansible-snippets

Ansible Vim snippets for SnipMate and UltiSnips.

Requirements

Install

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.

Usage

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.

License

BSD 2-clause "Simplified" License