mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-30 07:28:52 +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
|
|
@ -58,7 +58,7 @@ EXAMPLES = '''
|
|||
connection: local
|
||||
tasks:
|
||||
- name: Create an Anti Affinity Policy
|
||||
clc_aa_policy:
|
||||
community.general.clc_aa_policy:
|
||||
name: Hammer Time
|
||||
location: UK3
|
||||
state: present
|
||||
|
|
@ -75,7 +75,7 @@ EXAMPLES = '''
|
|||
connection: local
|
||||
tasks:
|
||||
- name: Delete an Anti Affinity Policy
|
||||
clc_aa_policy:
|
||||
community.general.clc_aa_policy:
|
||||
name: Hammer Time
|
||||
location: UK3
|
||||
state: absent
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ EXAMPLES = '''
|
|||
connection: local
|
||||
tasks:
|
||||
- name: Create an Alert Policy for disk above 80% for 5 minutes
|
||||
clc_alert_policy:
|
||||
community.general.clc_alert_policy:
|
||||
alias: wfad
|
||||
name: 'alert for disk > 80%'
|
||||
alert_recipients:
|
||||
|
|
@ -96,7 +96,7 @@ EXAMPLES = '''
|
|||
connection: local
|
||||
tasks:
|
||||
- name: Delete an Alert Policy
|
||||
clc_alert_policy:
|
||||
community.general.clc_alert_policy:
|
||||
alias: wfad
|
||||
name: 'alert for disk > 80%'
|
||||
state: absent
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ EXAMPLES = '''
|
|||
# Note - You must set the CLC_V2_API_USERNAME And CLC_V2_API_PASSWD Environment variables before running these examples
|
||||
|
||||
- name: Deploy package
|
||||
clc_blueprint_package:
|
||||
community.general.clc_blueprint_package:
|
||||
server_ids:
|
||||
- UC1TEST-SERVER1
|
||||
- UC1TEST-SERVER2
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ EXAMPLES = '''
|
|||
connection: local
|
||||
tasks:
|
||||
- name: Create / Verify a Server Group at CenturyLink Cloud
|
||||
clc_group:
|
||||
community.general.clc_group:
|
||||
name: My Cool Server Group
|
||||
parent: Default Group
|
||||
state: present
|
||||
|
|
@ -89,7 +89,7 @@ EXAMPLES = '''
|
|||
connection: local
|
||||
tasks:
|
||||
- name: Delete / Verify Absent a Server Group at CenturyLink Cloud
|
||||
clc_group:
|
||||
community.general.clc_group:
|
||||
name: My Cool Server Group
|
||||
parent: Default Group
|
||||
state: absent
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ EXAMPLES = '''
|
|||
connection: local
|
||||
tasks:
|
||||
- name: Actually Create things
|
||||
clc_loadbalancer:
|
||||
community.general.clc_loadbalancer:
|
||||
name: test
|
||||
description: test
|
||||
alias: TEST
|
||||
|
|
@ -95,7 +95,7 @@ EXAMPLES = '''
|
|||
connection: local
|
||||
tasks:
|
||||
- name: Actually Create things
|
||||
clc_loadbalancer:
|
||||
community.general.clc_loadbalancer:
|
||||
name: test
|
||||
description: test
|
||||
alias: TEST
|
||||
|
|
@ -111,7 +111,7 @@ EXAMPLES = '''
|
|||
connection: local
|
||||
tasks:
|
||||
- name: Actually Create things
|
||||
clc_loadbalancer:
|
||||
community.general.clc_loadbalancer:
|
||||
name: test
|
||||
description: test
|
||||
alias: TEST
|
||||
|
|
@ -127,7 +127,7 @@ EXAMPLES = '''
|
|||
connection: local
|
||||
tasks:
|
||||
- name: Actually Delete things
|
||||
clc_loadbalancer:
|
||||
community.general.clc_loadbalancer:
|
||||
name: test
|
||||
description: test
|
||||
alias: TEST
|
||||
|
|
@ -143,7 +143,7 @@ EXAMPLES = '''
|
|||
connection: local
|
||||
tasks:
|
||||
- name: Actually Delete things
|
||||
clc_loadbalancer:
|
||||
community.general.clc_loadbalancer:
|
||||
name: test
|
||||
description: test
|
||||
alias: TEST
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ EXAMPLES = '''
|
|||
# Note - You must set the CLC_V2_API_USERNAME And CLC_V2_API_PASSWD Environment variables before running these examples
|
||||
|
||||
- name: Set the cpu count to 4 on a server
|
||||
clc_modify_server:
|
||||
community.general.clc_modify_server:
|
||||
server_ids:
|
||||
- UC1TESTSVR01
|
||||
- UC1TESTSVR02
|
||||
|
|
@ -78,7 +78,7 @@ EXAMPLES = '''
|
|||
state: present
|
||||
|
||||
- name: Set the memory to 8GB on a server
|
||||
clc_modify_server:
|
||||
community.general.clc_modify_server:
|
||||
server_ids:
|
||||
- UC1TESTSVR01
|
||||
- UC1TESTSVR02
|
||||
|
|
@ -86,7 +86,7 @@ EXAMPLES = '''
|
|||
state: present
|
||||
|
||||
- name: Set the anti affinity policy on a server
|
||||
clc_modify_server:
|
||||
community.general.clc_modify_server:
|
||||
server_ids:
|
||||
- UC1TESTSVR01
|
||||
- UC1TESTSVR02
|
||||
|
|
@ -94,7 +94,7 @@ EXAMPLES = '''
|
|||
state: present
|
||||
|
||||
- name: Remove the anti affinity policy on a server
|
||||
clc_modify_server:
|
||||
community.general.clc_modify_server:
|
||||
server_ids:
|
||||
- UC1TESTSVR01
|
||||
- UC1TESTSVR02
|
||||
|
|
@ -102,7 +102,7 @@ EXAMPLES = '''
|
|||
state: absent
|
||||
|
||||
- name: Add the alert policy on a server
|
||||
clc_modify_server:
|
||||
community.general.clc_modify_server:
|
||||
server_ids:
|
||||
- UC1TESTSVR01
|
||||
- UC1TESTSVR02
|
||||
|
|
@ -110,7 +110,7 @@ EXAMPLES = '''
|
|||
state: present
|
||||
|
||||
- name: Remove the alert policy on a server
|
||||
clc_modify_server:
|
||||
community.general.clc_modify_server:
|
||||
server_ids:
|
||||
- UC1TESTSVR01
|
||||
- UC1TESTSVR02
|
||||
|
|
@ -118,7 +118,7 @@ EXAMPLES = '''
|
|||
state: absent
|
||||
|
||||
- name: Ret the memory to 16GB and cpu to 8 core on a lust if servers
|
||||
clc_modify_server:
|
||||
community.general.clc_modify_server:
|
||||
server_ids:
|
||||
- UC1TESTSVR01
|
||||
- UC1TESTSVR02
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ EXAMPLES = '''
|
|||
connection: local
|
||||
tasks:
|
||||
- name: Create Public IP For Servers
|
||||
clc_publicip:
|
||||
community.general.clc_publicip:
|
||||
protocol: TCP
|
||||
ports:
|
||||
- 80
|
||||
|
|
@ -82,7 +82,7 @@ EXAMPLES = '''
|
|||
connection: local
|
||||
tasks:
|
||||
- name: Create Public IP For Servers
|
||||
clc_publicip:
|
||||
community.general.clc_publicip:
|
||||
server_ids:
|
||||
- UC1TEST-SVR01
|
||||
- UC1TEST-SVR02
|
||||
|
|
|
|||
|
|
@ -175,7 +175,7 @@ EXAMPLES = '''
|
|||
# Note - You must set the CLC_V2_API_USERNAME And CLC_V2_API_PASSWD Environment variables before running these examples
|
||||
|
||||
- name: Provision a single Ubuntu Server
|
||||
clc_server:
|
||||
community.general.clc_server:
|
||||
name: test
|
||||
template: ubuntu-14-64
|
||||
count: 1
|
||||
|
|
@ -183,7 +183,7 @@ EXAMPLES = '''
|
|||
state: present
|
||||
|
||||
- name: Ensure 'Default Group' has exactly 5 servers
|
||||
clc_server:
|
||||
community.general.clc_server:
|
||||
name: test
|
||||
template: ubuntu-14-64
|
||||
exact_count: 5
|
||||
|
|
@ -191,19 +191,19 @@ EXAMPLES = '''
|
|||
group: Default Group
|
||||
|
||||
- name: Stop a Server
|
||||
clc_server:
|
||||
community.general.clc_server:
|
||||
server_ids:
|
||||
- UC1ACCT-TEST01
|
||||
state: stopped
|
||||
|
||||
- name: Start a Server
|
||||
clc_server:
|
||||
community.general.clc_server:
|
||||
server_ids:
|
||||
- UC1ACCT-TEST01
|
||||
state: started
|
||||
|
||||
- name: Delete a Server
|
||||
clc_server:
|
||||
community.general.clc_server:
|
||||
server_ids:
|
||||
- UC1ACCT-TEST01
|
||||
state: absent
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ EXAMPLES = '''
|
|||
# Note - You must set the CLC_V2_API_USERNAME And CLC_V2_API_PASSWD Environment variables before running these examples
|
||||
|
||||
- name: Create server snapshot
|
||||
clc_server_snapshot:
|
||||
community.general.clc_server_snapshot:
|
||||
server_ids:
|
||||
- UC1TEST-SVR01
|
||||
- UC1TEST-SVR02
|
||||
|
|
@ -64,7 +64,7 @@ EXAMPLES = '''
|
|||
state: present
|
||||
|
||||
- name: Restore server snapshot
|
||||
clc_server_snapshot:
|
||||
community.general.clc_server_snapshot:
|
||||
server_ids:
|
||||
- UC1TEST-SVR01
|
||||
- UC1TEST-SVR02
|
||||
|
|
@ -72,7 +72,7 @@ EXAMPLES = '''
|
|||
state: restore
|
||||
|
||||
- name: Delete server snapshot
|
||||
clc_server_snapshot:
|
||||
community.general.clc_server_snapshot:
|
||||
server_ids:
|
||||
- UC1TEST-SVR01
|
||||
- UC1TEST-SVR02
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue