ngine_io.exoscale.instance_rdns_record (1.1.0) — module

Manages reverse DNS records for Exoscale compute instances.

| "added in version" 1.1.0 of ngine_io.exoscale"

Authors: Lorenz Schori (@znerol)

Install collection

Install with ansible-galaxy collection install ngine_io.exoscale:==1.1.0


Add to requirements.yml

  collections:
    - name: ngine_io.exoscale
      version: 1.1.0

Description

Set and unset reverse DNS record on Exoscale instance.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Set the reverse DNS for a compute instance
  ngine_io.exoscale.instance_rdns_record:
    name: web-vm-1
    content: www.example.com
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Delete the reverse DNS for a compute instance
  ngine_io.exoscale.instance_rdns_record:
    name: web-vm-1
    state: absent

Inputs

    
name:
    description:
    - Name of the compute instance
    required: true
    type: str

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

api_key:
    description:
    - API key of the CloudStack API.
    - If not given, the C(CLOUDSTACK_KEY) env variable is considered.
    required: true
    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.
    required: true
    type: str

content:
    aliases:
    - value
    description:
    - Reverse DSN name of the compute instance. Required if state=present.
    type: str

api_secret:
    description:
    - Secret key of the CloudStack API.
    - If not set, the C(CLOUDSTACK_SECRET) env variable is considered.
    required: true
    type: str

api_timeout:
    default: 10
    description:
    - HTTP timeout in seconds.
    - If not given, the C(CLOUDSTACK_TIMEOUT) env variable is considered.
    type: int

api_http_method:
    choices:
    - get
    - post
    default: get
    description:
    - HTTP method used to query the API endpoint.
    - If not given, the C(CLOUDSTACK_METHOD) env variable is considered.
    type: str

api_verify_ssl_cert:
    description:
    - Verify CA authority cert file.
    - If not given, the C(CLOUDSTACK_VERIFY) env variable is considered.
    type: str

Outputs

instance_rdns_domain:
  description: Reverse DSN name of the compute instance
  returned: success
  type: str