|
|
@ -149,8 +149,7 @@ EXAMPLES = '''
|
|
|
|
gather_facts: False
|
|
|
|
gather_facts: False
|
|
|
|
tasks:
|
|
|
|
tasks:
|
|
|
|
- name: Build instance request
|
|
|
|
- name: Build instance request
|
|
|
|
local_action:
|
|
|
|
sl_vm:
|
|
|
|
module: sl_vm
|
|
|
|
|
|
|
|
hostname: instance-1
|
|
|
|
hostname: instance-1
|
|
|
|
domain: anydomain.com
|
|
|
|
domain: anydomain.com
|
|
|
|
datacenter: dal09
|
|
|
|
datacenter: dal09
|
|
|
@ -170,8 +169,7 @@ EXAMPLES = '''
|
|
|
|
gather_facts: False
|
|
|
|
gather_facts: False
|
|
|
|
tasks:
|
|
|
|
tasks:
|
|
|
|
- name: Build instances request
|
|
|
|
- name: Build instances request
|
|
|
|
local_action:
|
|
|
|
sl_vm:
|
|
|
|
module: sl_vm
|
|
|
|
|
|
|
|
hostname: "{{ item.hostname }}"
|
|
|
|
hostname: "{{ item.hostname }}"
|
|
|
|
domain: "{{ item.domain }}"
|
|
|
|
domain: "{{ item.domain }}"
|
|
|
|
datacenter: "{{ item.datacenter }}"
|
|
|
|
datacenter: "{{ item.datacenter }}"
|
|
|
@ -187,17 +185,49 @@ EXAMPLES = '''
|
|
|
|
ssh_keys: "{{ item.ssh_keys }}"
|
|
|
|
ssh_keys: "{{ item.ssh_keys }}"
|
|
|
|
wait: "{{ item.wait }}"
|
|
|
|
wait: "{{ item.wait }}"
|
|
|
|
with_items:
|
|
|
|
with_items:
|
|
|
|
- { hostname: 'instance-2', domain: 'anydomain.com', datacenter: 'dal09', tags: ['ansible-module-test', 'ansible-module-test-slaves'], hourly: True, private: False, dedicated: False, local_disk: True, cpus: 1, memory: 1024, disks: [25,100], os_code: 'UBUNTU_LATEST', ssh_keys: [], wait: True }
|
|
|
|
- hostname: instance-2
|
|
|
|
- { hostname: 'instance-3', domain: 'anydomain.com', datacenter: 'dal09', tags: ['ansible-module-test', 'ansible-module-test-slaves'], hourly: True, private: False, dedicated: False, local_disk: True, cpus: 1, memory: 1024, disks: [25,100], os_code: 'UBUNTU_LATEST', ssh_keys: [], wait: True }
|
|
|
|
domain: anydomain.com
|
|
|
|
|
|
|
|
datacenter: dal09
|
|
|
|
|
|
|
|
tags:
|
|
|
|
|
|
|
|
- ansible-module-test
|
|
|
|
|
|
|
|
- ansible-module-test-slaves
|
|
|
|
|
|
|
|
hourly: True
|
|
|
|
|
|
|
|
private: False
|
|
|
|
|
|
|
|
dedicated: False
|
|
|
|
|
|
|
|
local_disk: True
|
|
|
|
|
|
|
|
cpus: 1
|
|
|
|
|
|
|
|
memory: 1024
|
|
|
|
|
|
|
|
disks:
|
|
|
|
|
|
|
|
- 25
|
|
|
|
|
|
|
|
- 100
|
|
|
|
|
|
|
|
os_code: UBUNTU_LATEST
|
|
|
|
|
|
|
|
ssh_keys: []
|
|
|
|
|
|
|
|
wait: True
|
|
|
|
|
|
|
|
- hostname: instance-3
|
|
|
|
|
|
|
|
domain: anydomain.com
|
|
|
|
|
|
|
|
datacenter: dal09
|
|
|
|
|
|
|
|
tags:
|
|
|
|
|
|
|
|
- ansible-module-test
|
|
|
|
|
|
|
|
- ansible-module-test-slaves
|
|
|
|
|
|
|
|
hourly: True
|
|
|
|
|
|
|
|
private: False
|
|
|
|
|
|
|
|
dedicated: False
|
|
|
|
|
|
|
|
local_disk: True
|
|
|
|
|
|
|
|
cpus: 1
|
|
|
|
|
|
|
|
memory: 1024
|
|
|
|
|
|
|
|
disks:
|
|
|
|
|
|
|
|
- 25
|
|
|
|
|
|
|
|
- 100
|
|
|
|
|
|
|
|
os_code: UBUNTU_LATEST
|
|
|
|
|
|
|
|
ssh_keys: []
|
|
|
|
|
|
|
|
wait: True
|
|
|
|
|
|
|
|
|
|
|
|
- name: Cancel instances
|
|
|
|
- name: Cancel instances
|
|
|
|
hosts: localhost
|
|
|
|
hosts: localhost
|
|
|
|
gather_facts: False
|
|
|
|
gather_facts: False
|
|
|
|
tasks:
|
|
|
|
tasks:
|
|
|
|
- name: Cancel by tag
|
|
|
|
- name: Cancel by tag
|
|
|
|
local_action:
|
|
|
|
sl_vm:
|
|
|
|
module: sl_vm
|
|
|
|
|
|
|
|
state: absent
|
|
|
|
state: absent
|
|
|
|
tags: ansible-module-test
|
|
|
|
tags: ansible-module-test
|
|
|
|
'''
|
|
|
|
'''
|
|
|
|