|
150 | 150 | zone: |
151 | 151 | description: |
152 | 152 | - Name of the zone in which the instance should be deployed. |
153 | | - - If not set, default zone is used. |
154 | 153 | type: str |
| 154 | + required: true |
155 | 155 | ssh_key: |
156 | 156 | description: |
157 | 157 | - Name of the SSH key to be deployed on the new instance. |
|
218 | 218 | - name: for changing a running instance, use the 'force' parameter |
219 | 219 | ngine_io.cloudstack.cs_instance: |
220 | 220 | name: web-vm-1 |
| 221 | + zone: zone01 |
221 | 222 | display_name: web-vm-01.example.com |
222 | 223 | iso: Linux Debian 7 64-bit |
223 | 224 | service_offering: 2cpu_2gb |
|
227 | 228 | - name: create or update a instance on Exoscale's public cloud using display_name. |
228 | 229 | ngine_io.cloudstack.cs_instance: |
229 | 230 | display_name: web-vm-1 |
| 231 | + zone: zone01 |
230 | 232 | template: Linux Debian 7 64-bit |
231 | 233 | service_offering: Tiny |
232 | 234 | |
|
243 | 245 | - name: create an instance with multiple interfaces specifying the IP addresses |
244 | 246 | ngine_io.cloudstack.cs_instance: |
245 | 247 | name: web-vm-1 |
| 248 | + zone: zone01 |
246 | 249 | template: Linux Debian 7 64-bit |
247 | 250 | service_offering: Tiny |
248 | 251 | ip_to_networks: |
|
254 | 257 | - name: ensure an instance is stopped |
255 | 258 | ngine_io.cloudstack.cs_instance: |
256 | 259 | name: web-vm-1 |
| 260 | + zone: zone01 |
257 | 261 | state: stopped |
258 | 262 |
|
259 | 263 | - name: ensure an instance is running |
260 | 264 | ngine_io.cloudstack.cs_instance: |
261 | 265 | name: web-vm-1 |
| 266 | + zone: zone01 |
262 | 267 | state: started |
263 | 268 |
|
264 | 269 | - name: remove an instance |
265 | 270 | ngine_io.cloudstack.cs_instance: |
266 | 271 | name: web-vm-1 |
| 272 | + zone: zone01 |
267 | 273 | state: absent |
268 | 274 | ''' |
269 | 275 |
|
@@ -1035,7 +1041,7 @@ def main(): |
1035 | 1041 | account=dict(), |
1036 | 1042 | project=dict(), |
1037 | 1043 | user_data=dict(), |
1038 | | - zone=dict(), |
| 1044 | + zone=dict(required=True), |
1039 | 1045 | ssh_key=dict(), |
1040 | 1046 | force=dict(type='bool', default=False), |
1041 | 1047 | tags=dict(type='list', elements='dict', aliases=['tag']), |
|
0 commit comments