1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-04-02 02:16:23 +00:00

Fix examples formatting (#345)

This commit is contained in:
Andrew Klychkov 2020-05-16 16:07:51 +03:00 committed by GitHub
parent 31ba39cac4
commit a7c830f49d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
148 changed files with 330 additions and 334 deletions

View file

@ -50,13 +50,13 @@ notes:
EXAMPLES = '''
# Example playbook entries using the ejabberd_user module to manage users state.
- name: create a user if it does not exist
- name: Create a user if it does not exist
ejabberd_user:
username: test
host: server
password: password
- name: delete a user if it exists
- name: Delete a user if it exists
ejabberd_user:
username: test
host: server

View file

@ -55,24 +55,24 @@ notes:
'''
EXAMPLES = '''
- name: simple gunicorn run example
- name: Simple gunicorn run example
gunicorn:
app: 'wsgi'
chdir: '/workspace/example'
- name: run gunicorn on a virtualenv
- name: Run gunicorn on a virtualenv
gunicorn:
app: 'wsgi'
chdir: '/workspace/example'
venv: '/workspace/example/venv'
- name: run gunicorn with a config file
- name: Run gunicorn with a config file
gunicorn:
app: 'wsgi'
chdir: '/workspace/example'
conf: '/workspace/example/gunicorn.cfg'
- name: run gunicorn as ansible user with specified pid and config file
- name: Run gunicorn as ansible user with specified pid and config file
gunicorn:
app: 'wsgi'
chdir: '/workspace/example'

View file

@ -72,13 +72,13 @@ EXAMPLES = '''
instance.setMode(${jenkins_mode})
instance.save()
- name: use the variable as the script
- name: Use the variable as the script
jenkins_script:
script: "{{ setmaster_mode }}"
args:
jenkins_mode: Node.Mode.EXCLUSIVE
- name: interacting with an untrusted HTTPS connection
- name: Interacting with an untrusted HTTPS connection
jenkins_script:
script: "println(Jenkins.instance.pluginManager.plugins)"
user: admin

View file

@ -36,12 +36,12 @@ notes:
EXAMPLES = '''
# Gather status facts from nginx on localhost
- name: get current http stats
- name: Get current http stats
nginx_status_facts:
url: http://localhost/nginx_status
# Gather status facts from nginx on localhost with a custom timeout of 20 seconds
- name: get current http stats
- name: Get current http stats
nginx_status_facts:
url: http://localhost/nginx_status
timeout: 20

View file

@ -34,13 +34,13 @@ notes:
EXAMPLES = r'''
# Gather status info from nginx on localhost
- name: get current http stats
- name: Get current http stats
nginx_status_info:
url: http://localhost/nginx_status
register: result
# Gather status info from nginx on localhost with a custom timeout of 20 seconds
- name: get current http stats
- name: Get current http stats
nginx_status_info:
url: http://localhost/nginx_status
timeout: 20

View file

@ -56,8 +56,7 @@ extends_documentation_fragment:
'''
EXAMPLES = """
# Create a ca_host_key_cert entry
- name: utm ca_host_key_cert
- name: Create a ca_host_key_cert entry
utm_ca_host_key_cert:
utm_host: sophos.host.name
utm_token: abcdefghijklmno1234
@ -72,16 +71,14 @@ EXAMPLES = """
--- END CERTIFICATE ---
state: present
# Remove a ca_host_key_cert entry
- name: utm ca_host_key_cert
- name: Remove a ca_host_key_cert entry
utm_ca_host_key_cert:
utm_host: sophos.host.name
utm_token: abcdefghijklmno1234
name: TestHostKeyCertEntry
state: absent
# Read a ca_host_key_cert entry
- name: utm ca_host_key_cert
- name: Read a ca_host_key_cert entry
utm_ca_host_key_cert:
utm_host: sophos.host.name
utm_token: abcdefghijklmno1234

View file

@ -32,7 +32,7 @@ extends_documentation_fragment:
'''
EXAMPLES = """
- name: utm ca_host_key_cert_info
- name: Get info for a ca host_key_cert entry
utm_ca_host_key_cert_info:
utm_host: sophos.host.name
utm_token: abcdefghijklmno1234

View file

@ -49,8 +49,7 @@ extends_documentation_fragment:
'''
EXAMPLES = """
# Create a network interface address
- name: utm network interface address
- name: Create a network interface address
utm_proxy_backend:
utm_host: sophos.host.name
utm_token: abcdefghijklmno1234
@ -58,8 +57,7 @@ EXAMPLES = """
address: 0.0.0.0
state: present
# Remove a network interface address
- name: utm network interface address
- name: Remove a network interface address
network_interface_address:
utm_host: sophos.host.name
utm_token: abcdefghijklmno1234

View file

@ -31,7 +31,7 @@ extends_documentation_fragment:
'''
EXAMPLES = """
- name: utm network interface address
- name: Get network interface address info
utm_proxy_interface_address_info:
utm_host: sophos.host.name
utm_token: abcdefghijklmno1234