Author: | Christopher H. Laco, Jesse Keating |
---|
parameter | required | default | choices | comments |
---|---|---|---|---|
api_key | no | Rackspace API key (overrides credentials ) |
||
cidr | no | cidr of the network being created | ||
credentials | no | File to find the Rackspace credentials in (ignored if api_key and username are provided) |
||
label | no | Label (name) to give the network | ||
region | no | DFW | Region to create the network in | |
state | no | present |
|
Indicate desired state of the resource |
username | no | Rackspace username (overrides credentials ) |
Note
Requires pyrax
- name: Build an Isolated Network
gather_facts: False
tasks:
- name: Network create request
local_action:
module: rax_network
credentials: ~/.raxpub
label: my-net
cidr: 192.168.3.0/24
state: present
Note
The following environment variables can be used, RAX_USERNAME, RAX_API_KEY, RAX_CREDS, RAX_CREDENTIALS, RAX_REGION.
Note
RAX_CREDENTIALS and RAX_CREDS points to a credentials file appropriate for pyrax
Note
RAX_USERNAME and RAX_API_KEY obviate the use of a credentials file
Note
RAX_REGION defines a Rackspace Public Cloud region (DFW, ORD, LON, ...)