1
0
Fork 0
mirror of https://github.com/ansible-collections/hetzner.hcloud.git synced 2026-02-04 08:01:49 +00:00
hetzner.hcloud/plugins
Jonas L. 7ac361a9cc
feat: add txt_record filter to format TXT records (#721)
##### SUMMARY

The format of TXT records must consist of one or many quoted strings of
255 characters.

Use this function to format TXT record that must match the format
required by the API:

```yml
- name: Create a SPF record
  hetzner.hcloud.zone_rrset:
    zone: example.com
    name: "@"
    type: "TXT"
    records:
      - value: "{{ 'v=spf1 include:_spf.example.net ~all' | hetzner.hcloud.text_record }}"
    state: present
```

##### ISSUE TYPE

- Feature Pull Request


##### COMPONENT NAME

zone_rrset
2025-10-31 12:36:19 +01:00
..
doc_fragments refactor: add future annotations imports (#398) 2023-11-23 14:53:10 +01:00
filter feat: add txt_record filter to format TXT records (#721) 2025-10-31 12:36:19 +01:00
inventory docs: update deprecated server types (#718) 2025-10-28 13:45:41 +01:00
module_utils chore(main): release 6.0.0 (#715) 2025-10-30 12:41:49 +01:00
modules feat: add txt_record filter to format TXT records (#721) 2025-10-31 12:36:19 +01:00
__init__.py refactor: add plugins top level __init__ (#320) 2023-09-06 16:06:25 +02:00