Validate EXAMPLES as YAML

This commit is contained in:
Matt Martz 2017-02-07 15:39:24 -06:00 committed by Toshio Kuratomi
commit 7c00346714
112 changed files with 441 additions and 381 deletions

View file

@ -76,7 +76,7 @@ EXAMPLES = '''
name: bootstrap
- name: Install "bootstrap" bower package on version 3.1.1.
bower:
bower:
name: bootstrap
version: '3.1.1'

View file

@ -81,44 +81,44 @@ options:
'''
EXAMPLES = '''
description: Install "coffee-script" node.js package.
- npm:
- name: Install "coffee-script" node.js package.
npm:
name: coffee-script
path: /app/location
description: Install "coffee-script" node.js package on version 1.6.1.
- npm:
- name: Install "coffee-script" node.js package on version 1.6.1.
npm:
name: coffee-script
version: '1.6.1'
path: /app/location
description: Install "coffee-script" node.js package globally.
- npm:
- name: Install "coffee-script" node.js package globally.
npm:
name: coffee-script
global: yes
description: Remove the globally package "coffee-script".
- npm:
- name: Remove the globally package "coffee-script".
npm:
name: coffee-script
global: yes
state: absent
description: Install "coffee-script" node.js package from custom registry.
- npm:
- name: Install "coffee-script" node.js package from custom registry.
npm:
name: coffee-script
registry: 'http://registry.mysite.com'
description: Install packages based on package.json.
- npm:
- name: Install packages based on package.json.
npm:
path: /app/location
description: Update packages based on package.json to their latest version.
- npm:
- name: Update packages based on package.json to their latest version.
npm:
path: /app/location
state: latest
description: Install packages based on package.json using the npm installed with nvm v0.10.1.
- npm:
- name: Install packages based on package.json using the npm installed with nvm v0.10.1.
npm:
path: /app/location
executable: /opt/nvm/v0.10.1/bin/npm
state: present

View file

@ -128,8 +128,8 @@ EXAMPLES = '''
# Playbook: make sure spells with/without required dependencies (if any) are installed
- sorcery:
name: {{ item.spell }}
depends: {{ item.depends | default(None) }}
name: "{{ item.spell }}"
depends: "{{ item.depends | default(None) }}"
state: present
with_items:
- { spell: 'vifm', depends: '+file,-gtk+2' }

View file

@ -145,7 +145,7 @@ EXAMPLES = '''
# Force refresh of a repository
- zypper_repository:
repo: 'http://my_internal_ci_repo/repo
repo: 'http://my_internal_ci_repo/repo'
name: my_ci_repo
state: present
runrefresh: yes