mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07:00
Fix Ansible documentation in part of example formatting. Part 1 (#332)
* Fix Ansible documentation in part of example formatting * Fix
This commit is contained in:
parent
983d937b7b
commit
328319b926
70 changed files with 762 additions and 705 deletions
|
@ -69,9 +69,8 @@ options:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
# Adds or modify the backend '212.1.1.1' to a
|
||||
# loadbalancing 'ip-1.1.1.1'
|
||||
- ovh_ip_loadbalancing:
|
||||
- name: Adds or modify the backend '212.1.1.1' to a loadbalancing 'ip-1.1.1.1'
|
||||
ovh_ip_loadbalancing:
|
||||
name: ip-1.1.1.1
|
||||
backend: 212.1.1.1
|
||||
state: present
|
||||
|
@ -82,8 +81,8 @@ EXAMPLES = '''
|
|||
application_secret: yoursecret
|
||||
consumer_key: yourconsumerkey
|
||||
|
||||
# Removes a backend '212.1.1.1' from a loadbalancing 'ip-1.1.1.1'
|
||||
- ovh_ip_loadbalancing:
|
||||
- name: Removes a backend '212.1.1.1' from a loadbalancing 'ip-1.1.1.1'
|
||||
ovh_ip_loadbalancing:
|
||||
name: ip-1.1.1.1
|
||||
backend: 212.1.1.1
|
||||
state: absent
|
||||
|
|
|
@ -46,27 +46,26 @@ options:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
# basic usage, using auth from /etc/ovh.conf
|
||||
- ovh_monthly_billing:
|
||||
project_id: 0c727a20aa144485b70c44dee9123b46
|
||||
instance_id: 8fa89ad2-8f08-4220-9fa4-9695ea23e948
|
||||
- name: Basic usage, using auth from /etc/ovh.conf
|
||||
ovh_monthly_billing:
|
||||
project_id: 0c727a20aa144485b70c44dee9123b46
|
||||
instance_id: 8fa89ad2-8f08-4220-9fa4-9695ea23e948
|
||||
|
||||
# a bit more more complex
|
||||
# get openstack cloud ID and instance ID, OVH use them in its API
|
||||
- os_server_info:
|
||||
cloud: myProjectName
|
||||
region_name: myRegionName
|
||||
server: myServerName
|
||||
# force run even in check_mode
|
||||
check_mode: no
|
||||
# Get openstack cloud ID and instance ID, OVH use them in its API
|
||||
- name: Get openstack cloud ID and instance ID
|
||||
os_server_info:
|
||||
cloud: myProjectName
|
||||
region_name: myRegionName
|
||||
server: myServerName
|
||||
register: openstack_servers
|
||||
|
||||
# use theses IDs
|
||||
- ovh_monthly_billing:
|
||||
project_id: "{{ openstack_servers.0.tenant_id }}"
|
||||
instance_id: "{{ openstack_servers.0.id }}"
|
||||
application_key: yourkey
|
||||
application_secret: yoursecret
|
||||
consumer_key: yourconsumerkey
|
||||
- name: Use IDs
|
||||
ovh_monthly_billing:
|
||||
project_id: "{{ openstack_servers.0.tenant_id }}"
|
||||
instance_id: "{{ openstack_servers.0.id }}"
|
||||
application_key: yourkey
|
||||
application_secret: yoursecret
|
||||
consumer_key: yourconsumerkey
|
||||
'''
|
||||
|
||||
RETURN = '''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue