Giter Club home page Giter Club logo

ansible-snippets's Introduction

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

ansible-snippets's People

Contributors

phenomenes avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.