community.hrobot.reverse_dns module – Set or remove reverse DNS entry for IP
Note
This module is part of the community.hrobot collection (version 2.5.2).
You might already have this collection installed if you are using the ansible package.
It is not included in ansible-core.
To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install community.hrobot.
To use it in a playbook, specify: community.hrobot.reverse_dns.
New in community.hrobot 1.2.0
Synopsis
- Allows to set, update or remove a reverse DNS entry for an IP address. 
Parameters
| Parameter | Comments | 
|---|---|
| The password for the Robot web-service user. | |
| The username for the Robot web-service user. | |
| The IP address to set or remove a reverse DNS entry for. | |
| Timeout (in seconds) for waiting when rate limit exceeded errors are returned. Set to  Set to a negative value like  Default:  | |
| Whether to set or update ( Choices: 
 | |
| The reverse DNS entry for  Required if  | 
Attributes
| Attribute | Support | Description | 
|---|---|---|
| Action group: community.hrobot.robot added in community.hrobot 1.6.0 | Use  | |
| Support: full | Can run in  | |
| Support: none | Will return details on what has changed (or possibly needs changing in  | |
| Support: full | When run twice in a row outside check mode, with the same arguments, the second invocation indicates no change. This assumes that the system controlled/queried by the module has not changed in a relevant way. | 
Notes
Note
- For the main IPv4 address of a server, deleting it actually sets it to a default hostname like - static.X.Y.Z.W.clients.your-server.de. This substitution (delete is replaced by changing to this value) is done automatically by the API and results in the module not being idempotent in this case.
Examples
---
- 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
- 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
