Validate EXAMPLES as YAML

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

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