Closed markuman closed 3 years ago
Hey @markuman,
there are several typos in your configuration.
hetzner.hcloud.hcloud_server.hcloud_rdns:
should be
hetzner.hcloud.hcloud_rdns:
And the server name you use in this rdns config does not exist. (You create a server with the name home.osuv.de
before but in the rdns you reference only home
.
Regardless of this, the error message should be clear yes. We will look into this.
Ah right.
- name: Create a reverse DNS entry for a server
hetzner.hcloud.hcloud_rdns:
server: home.osuv.de
ip_address: "{{ HOME.hcloud_server.ipv4_address }}"
dns_ptr: home.osuv.de
state: present
It was to late. thx!
SUMMARY
using
hetzner.hcloud.hcloud_server.hcloud_rdns
results first in a warning[WARNING]: Collection ansible.netcommon does not support Ansible version 2.11.2
and second, in an error.
AttributeError: 'NoneType' object has no attribute 'public_net'
Full traceback is below.
ISSUE TYPE
COMPONENT NAME
hcloud_rdns
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Linux 5.11.22
STEPS TO REPRODUCE
EXPECTED RESULTS
rdns value is set without errors
ACTUAL RESULTS