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