mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 20:01:25 -07:00
Validate EXAMPLES as YAML
This commit is contained in:
parent
499d3a1b53
commit
7c00346714
112 changed files with 441 additions and 381 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue