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

@@ -76,14 +76,14 @@ options:
EXAMPLES = """
- name: set hostname with file lookup
ops_template:
ops_template:
src: ./hostname.json
backup: yes
remote_user: admin
become: yes
- name: set hostname with var
ops_template:
ops_template:
src: "{{ config }}"
remote_user: admin
become: yes

View File

@@ -85,6 +85,7 @@ options:
EXAMPLES = """
# Note: examples below use the following provider dict to handle
# transport and authentication to the node.
---
vars:
cli:
host: "{{ inventory_hostname }}"
@@ -92,6 +93,7 @@ vars:
password: netop
transport: cli
---
- ops_command:
commands:
- show version

View File

@@ -139,12 +139,14 @@ options:
EXAMPLES = """
# Note: examples below use the following provider dict to handle
# transport and authentication to the node.
---
vars:
cli:
host: "{{ inventory_hostname }}"
username: netop
password: netop
---
- name: configure hostname over cli
ops_config:
lines:

View File

@@ -73,6 +73,7 @@ options:
EXAMPLES = """
# Note: examples below use the following provider dict to handle
# transport and authentication to the node.
---
vars:
cli:
host: "{{ inventory_hostname }}"
@@ -85,6 +86,7 @@ vars:
password: netop
transport: rest
---
- ops_facts:
gather_subset: all
provider: "{{ rest }}"