Followup tweaks to module EXAMPLES, per comments in #29039 (#30248)

* Drop hosts: tasks: boilerplate from EXAMPLES string

Should be just individual tasks
https://docs.ansible.com/ansible/latest/dev_guide/developing_modules_documenting.html#examples-block

* Demonstrate url with port in one of the EXAMPLES
This commit is contained in:
Beni Cherniavsky-Paskin 2017-09-24 11:55:19 +03:00 committed by ansibot
parent 303d622dcb
commit 60d32f26d7

View file

@ -160,8 +160,6 @@ options:
'''
EXAMPLES = '''
- hosts: 127.0.0.1
tasks:
- name: Create a new provider in ManageIQ ('Hawkular' metrics)
manageiq_provider:
name: 'EngLab'
@ -219,14 +217,12 @@ EXAMPLES = '''
XUsdmRaWiF+l4s6Dcd56SuRp5SGNa2+vP9Of/FX5
-----END CERTIFICATE-----
manageiq_connection:
url: 'https://127.0.0.1'
url: 'https://127.0.0.1:80'
username: 'admin'
password: 'password'
verify_ssl: true
- hosts: 127.0.0.1
tasks:
- name: Update an existing provider named 'EngLab' (defaults to 'Prometheus' metrics)
manageiq_provider:
name: 'EngLab'
@ -289,8 +285,6 @@ EXAMPLES = '''
verify_ssl: true
- hosts: 127.0.0.1
tasks:
- name: Delete a provider in ManageIQ
manageiq_provider:
name: 'EngLab'
@ -303,8 +297,6 @@ EXAMPLES = '''
verify_ssl: true
- hosts: 127.0.0.1
tasks:
- name: Create a new Amazon provider in ManageIQ using token authentication
manageiq_provider:
name: 'EngAmazon'
@ -318,8 +310,6 @@ EXAMPLES = '''
url: 'https://127.0.0.1'
token: 'VeryLongToken'
verify_ssl: true
'''
RETURN = '''