community.hrobot.reverse_dns (1.9.1) — module

Set or remove reverse DNS entry for IP

| "added in version" 1.2.0 of community.hrobot"

Authors: Felix Fontein (@felixfontein)

Install collection

Install with ansible-galaxy collection install community.hrobot:==1.9.1


Add to requirements.yml

  collections:
    - name: community.hrobot
      version: 1.9.1

Description

Allows to set, update or remove a reverse DNS entry for an IP address.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Set reverse DNS entry for 1.2.3.4
  community.hrobot.reverse_dns:
    hetzner_user: foo
    hetzner_password: bar
    ip: 1.2.3.4
    value: foo.example.com
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Remove reverse DNS entry for 2a01:f48:111:4221::1
  community.hrobot.reverse_dns:
    hetzner_user: foo
    hetzner_password: bar
    ip: 2a01:f48:111:4221::1
    state: absent

Inputs

    
ip:
    description:
    - The IP address to set or remove a reverse DNS entry for.
    required: true
    type: str

state:
    choices:
    - present
    - absent
    default: present
    description:
    - Whether to set or update (V(present)) or delete (V(absent)) the reverse DNS entry
      for O(ip).
    type: str

value:
    description:
    - The reverse DNS entry for O(ip).
    - Required if O(state=present).
    type: str

hetzner_user:
    description: The username for the Robot webservice user.
    required: true
    type: str

hetzner_password:
    description: The password for the Robot webservice user.
    required: true
    type: str