mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-09 21:47:17 +00:00
modules: fix examples to use FQCN (#644)
* modules: fix examples to use FQCN * fix * fix * fix
This commit is contained in:
parent
8b92e0454d
commit
41cfdda6a3
533 changed files with 2130 additions and 2130 deletions
|
|
@ -73,7 +73,7 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = '''
|
||||
- name: Enable SSL termination on a load balancer
|
||||
rax_clb_ssl:
|
||||
community.general.rax_clb_ssl:
|
||||
loadbalancer: the_loadbalancer
|
||||
state: present
|
||||
private_key: "{{ lookup('file', 'credentials/server.key' ) }}"
|
||||
|
|
@ -83,7 +83,7 @@ EXAMPLES = '''
|
|||
wait: true
|
||||
|
||||
- name: Disable SSL termination
|
||||
rax_clb_ssl:
|
||||
community.general.rax_clb_ssl:
|
||||
loadbalancer: "{{ registered_lb.balancer.id }}"
|
||||
state: absent
|
||||
wait: true
|
||||
|
|
|
|||
|
|
@ -76,43 +76,43 @@ EXAMPLES = '''
|
|||
gather_facts: no
|
||||
tasks:
|
||||
- name: "List all containers"
|
||||
rax_files:
|
||||
community.general.rax_files:
|
||||
state: list
|
||||
|
||||
- name: "Create container called 'mycontainer'"
|
||||
rax_files:
|
||||
community.general.rax_files:
|
||||
container: mycontainer
|
||||
|
||||
- name: "Create container 'mycontainer2' with metadata"
|
||||
rax_files:
|
||||
community.general.rax_files:
|
||||
container: mycontainer2
|
||||
meta:
|
||||
key: value
|
||||
file_for: someuser@example.com
|
||||
|
||||
- name: "Set a container's web index page"
|
||||
rax_files:
|
||||
community.general.rax_files:
|
||||
container: mycontainer
|
||||
web_index: index.html
|
||||
|
||||
- name: "Set a container's web error page"
|
||||
rax_files:
|
||||
community.general.rax_files:
|
||||
container: mycontainer
|
||||
web_error: error.html
|
||||
|
||||
- name: "Make container public"
|
||||
rax_files:
|
||||
community.general.rax_files:
|
||||
container: mycontainer
|
||||
public: yes
|
||||
|
||||
- name: "Make container public with a 24 hour TTL"
|
||||
rax_files:
|
||||
community.general.rax_files:
|
||||
container: mycontainer
|
||||
public: yes
|
||||
ttl: 86400
|
||||
|
||||
- name: "Make container private"
|
||||
rax_files:
|
||||
community.general.rax_files:
|
||||
container: mycontainer
|
||||
private: yes
|
||||
|
||||
|
|
@ -121,19 +121,19 @@ EXAMPLES = '''
|
|||
gather_facts: no
|
||||
tasks:
|
||||
- name: "Get mycontainer2 metadata"
|
||||
rax_files:
|
||||
community.general.rax_files:
|
||||
container: mycontainer2
|
||||
type: meta
|
||||
|
||||
- name: "Set mycontainer2 metadata"
|
||||
rax_files:
|
||||
community.general.rax_files:
|
||||
container: mycontainer2
|
||||
type: meta
|
||||
meta:
|
||||
uploaded_by: someuser@example.com
|
||||
|
||||
- name: "Remove mycontainer2 metadata"
|
||||
rax_files:
|
||||
community.general.rax_files:
|
||||
container: "mycontainer2"
|
||||
type: meta
|
||||
state: absent
|
||||
|
|
|
|||
|
|
@ -84,53 +84,53 @@ EXAMPLES = '''
|
|||
gather_facts: False
|
||||
tasks:
|
||||
- name: "Get objects from test container"
|
||||
rax_files_objects:
|
||||
community.general.rax_files_objects:
|
||||
container: testcont
|
||||
dest: ~/Downloads/testcont
|
||||
|
||||
- name: "Get single object from test container"
|
||||
rax_files_objects:
|
||||
community.general.rax_files_objects:
|
||||
container: testcont
|
||||
src: file1
|
||||
dest: ~/Downloads/testcont
|
||||
|
||||
- name: "Get several objects from test container"
|
||||
rax_files_objects:
|
||||
community.general.rax_files_objects:
|
||||
container: testcont
|
||||
src: file1,file2,file3
|
||||
dest: ~/Downloads/testcont
|
||||
|
||||
- name: "Delete one object in test container"
|
||||
rax_files_objects:
|
||||
community.general.rax_files_objects:
|
||||
container: testcont
|
||||
method: delete
|
||||
dest: file1
|
||||
|
||||
- name: "Delete several objects in test container"
|
||||
rax_files_objects:
|
||||
community.general.rax_files_objects:
|
||||
container: testcont
|
||||
method: delete
|
||||
dest: file2,file3,file4
|
||||
|
||||
- name: "Delete all objects in test container"
|
||||
rax_files_objects:
|
||||
community.general.rax_files_objects:
|
||||
container: testcont
|
||||
method: delete
|
||||
|
||||
- name: "Upload all files to test container"
|
||||
rax_files_objects:
|
||||
community.general.rax_files_objects:
|
||||
container: testcont
|
||||
method: put
|
||||
src: ~/Downloads/onehundred
|
||||
|
||||
- name: "Upload one file to test container"
|
||||
rax_files_objects:
|
||||
community.general.rax_files_objects:
|
||||
container: testcont
|
||||
method: put
|
||||
src: ~/Downloads/testcont/file1
|
||||
|
||||
- name: "Upload one file to test container with metadata"
|
||||
rax_files_objects:
|
||||
community.general.rax_files_objects:
|
||||
container: testcont
|
||||
src: ~/Downloads/testcont/file2
|
||||
method: put
|
||||
|
|
@ -139,14 +139,14 @@ EXAMPLES = '''
|
|||
who_uploaded_this: someuser@example.com
|
||||
|
||||
- name: "Upload one file to test container with TTL of 60 seconds"
|
||||
rax_files_objects:
|
||||
community.general.rax_files_objects:
|
||||
container: testcont
|
||||
method: put
|
||||
src: ~/Downloads/testcont/file3
|
||||
expires: 60
|
||||
|
||||
- name: "Attempt to get remote object that does not exist"
|
||||
rax_files_objects:
|
||||
community.general.rax_files_objects:
|
||||
container: testcont
|
||||
method: get
|
||||
src: FileThatDoesNotExist.jpg
|
||||
|
|
@ -154,7 +154,7 @@ EXAMPLES = '''
|
|||
ignore_errors: yes
|
||||
|
||||
- name: "Attempt to delete remote object that does not exist"
|
||||
rax_files_objects:
|
||||
community.general.rax_files_objects:
|
||||
container: testcont
|
||||
method: delete
|
||||
dest: FileThatDoesNotExist.jpg
|
||||
|
|
@ -165,19 +165,19 @@ EXAMPLES = '''
|
|||
gather_facts: false
|
||||
tasks:
|
||||
- name: "Get metadata on one object"
|
||||
rax_files_objects:
|
||||
community.general.rax_files_objects:
|
||||
container: testcont
|
||||
type: meta
|
||||
dest: file2
|
||||
|
||||
- name: "Get metadata on several objects"
|
||||
rax_files_objects:
|
||||
community.general.rax_files_objects:
|
||||
container: testcont
|
||||
type: meta
|
||||
src: file2,file1
|
||||
|
||||
- name: "Set metadata on an object"
|
||||
rax_files_objects:
|
||||
community.general.rax_files_objects:
|
||||
container: testcont
|
||||
type: meta
|
||||
dest: file17
|
||||
|
|
@ -188,13 +188,13 @@ EXAMPLES = '''
|
|||
clear_meta: true
|
||||
|
||||
- name: "Verify metadata is set"
|
||||
rax_files_objects:
|
||||
community.general.rax_files_objects:
|
||||
container: testcont
|
||||
type: meta
|
||||
src: file17
|
||||
|
||||
- name: "Delete metadata"
|
||||
rax_files_objects:
|
||||
community.general.rax_files_objects:
|
||||
container: testcont
|
||||
type: meta
|
||||
dest: file17
|
||||
|
|
@ -204,7 +204,7 @@ EXAMPLES = '''
|
|||
key2: ''
|
||||
|
||||
- name: "Get metadata on all objects"
|
||||
rax_files_objects:
|
||||
community.general.rax_files_objects:
|
||||
container: testcont
|
||||
type: meta
|
||||
'''
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ EXAMPLES = '''
|
|||
connection: local
|
||||
tasks:
|
||||
- name: Ensure that a specific alarm exists.
|
||||
rax_mon_alarm:
|
||||
community.general.rax_mon_alarm:
|
||||
credentials: ~/.rax_pub
|
||||
state: present
|
||||
label: uhoh
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@ EXAMPLES = '''
|
|||
connection: local
|
||||
tasks:
|
||||
- name: Associate a check with an existing entity.
|
||||
rax_mon_check:
|
||||
community.general.rax_mon_check:
|
||||
credentials: ~/.rax_pub
|
||||
state: present
|
||||
entity_id: "{{ the_entity['entity']['id'] }}"
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ EXAMPLES = '''
|
|||
connection: local
|
||||
tasks:
|
||||
- name: Ensure an entity exists
|
||||
rax_mon_entity:
|
||||
community.general.rax_mon_entity:
|
||||
credentials: ~/.rax_pub
|
||||
state: present
|
||||
label: my_entity
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ EXAMPLES = '''
|
|||
connection: local
|
||||
tasks:
|
||||
- name: Establish who gets called when.
|
||||
rax_mon_notification_plan:
|
||||
community.general.rax_mon_notification_plan:
|
||||
credentials: ~/.rax_pub
|
||||
state: present
|
||||
label: defcon1
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ EXAMPLES = '''
|
|||
gather_facts: false
|
||||
connection: local
|
||||
tasks:
|
||||
- rax_scaling_group:
|
||||
- community.general.rax_scaling_group:
|
||||
credentials: ~/.raxpub
|
||||
region: ORD
|
||||
cooldown: 300
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ EXAMPLES = '''
|
|||
gather_facts: false
|
||||
connection: local
|
||||
tasks:
|
||||
- rax_scaling_policy:
|
||||
- community.general.rax_scaling_policy:
|
||||
credentials: ~/.raxpub
|
||||
region: ORD
|
||||
at: '2013-05-19T08:07:08Z'
|
||||
|
|
@ -88,7 +88,7 @@ EXAMPLES = '''
|
|||
scaling_group: ASG Test
|
||||
register: asps_at
|
||||
|
||||
- rax_scaling_policy:
|
||||
- community.general.rax_scaling_policy:
|
||||
credentials: ~/.raxpub
|
||||
region: ORD
|
||||
cron: '1 0 * * *'
|
||||
|
|
@ -100,7 +100,7 @@ EXAMPLES = '''
|
|||
scaling_group: ASG Test
|
||||
register: asp_cron
|
||||
|
||||
- rax_scaling_policy:
|
||||
- community.general.rax_scaling_policy:
|
||||
credentials: ~/.raxpub
|
||||
region: ORD
|
||||
cooldown: 300
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue