community.general.cs_network_acl (0.1.1) — module

Manages network access control lists (ACL) on Apache CloudStack based clouds.

Authors: René Moser (@resmo)

preview | supported by community

Install collection

Install with ansible-galaxy collection install community.general:==0.1.1


Add to requirements.yml

  collections:
    - name: community.general
      version: 0.1.1

Description

Create and remove network ACLs.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: create a network ACL
  cs_network_acl:
    name: Webserver ACL
    description: a more detailed description of the ACL
    vpc: customers
  delegate_to: localhost
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: remove a network ACL
  cs_network_acl:
    name: Webserver ACL
    vpc: customers
    state: absent
  delegate_to: localhost

Inputs

    
vpc:
    description:
    - VPC the network ACL is related to.
    required: true
    type: str

name:
    description:
    - Name of the network ACL.
    required: true
    type: str

zone:
    description:
    - Name of the zone the VPC is related to.
    - If not set, default zone is used.
    type: str

state:
    choices:
    - present
    - absent
    default: present
    description:
    - State of the network ACL.
    type: str

domain:
    description:
    - Domain the network ACL rule is related to.
    type: str

account:
    description:
    - Account the network ACL rule is related to.
    type: str

api_key:
    description:
    - API key of the CloudStack API.
    - If not given, the C(CLOUDSTACK_KEY) env variable is considered.
    - As the last option, the value is taken from the ini config file, also see the notes.
    type: str

api_url:
    description:
    - URL of the CloudStack API e.g. https://cloud.example.com/client/api.
    - If not given, the C(CLOUDSTACK_ENDPOINT) env variable is considered.
    - As the last option, the value is taken from the ini config file, also see the notes.
    type: str

project:
    description:
    - Name of the project the network ACL is related to.
    type: str

api_region:
    default: cloudstack
    description:
    - Name of the ini section in the C(cloustack.ini) file.
    - If not given, the C(CLOUDSTACK_REGION) env variable is considered.
    type: str

api_secret:
    description:
    - Secret key of the CloudStack API.
    - If not set, the C(CLOUDSTACK_SECRET) env variable is considered.
    - As the last option, the value is taken from the ini config file, also see the notes.
    type: str

poll_async:
    default: true
    description:
    - Poll async jobs until job has finished.
    type: bool

api_timeout:
    description:
    - HTTP timeout in seconds.
    - If not given, the C(CLOUDSTACK_TIMEOUT) env variable is considered.
    - As the last option, the value is taken from the ini config file, also see the notes.
    - Fallback value is 10 seconds if not specified.
    type: int

description:
    description:
    - Description of the network ACL.
    - If not set, identical to I(name).
    type: str

api_http_method:
    choices:
    - get
    - post
    description:
    - HTTP method used to query the API endpoint.
    - If not given, the C(CLOUDSTACK_METHOD) env variable is considered.
    - As the last option, the value is taken from the ini config file, also see the notes.
    - Fallback value is C(get) if not specified.
    type: str

Outputs

description:
  description: Description of the network ACL.
  returned: success
  sample: Example description of a network ACL
  type: str
name:
  description: Name of the network ACL.
  returned: success
  sample: customer acl
  type: str
vpc:
  description: VPC of the network ACL.
  returned: success
  sample: customer vpc
  type: str
zone:
  description: Zone the VPC is related to.
  returned: success
  sample: ch-gva-2
  type: str