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/tests
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
..
integration test: server types locations are sorted by id (#717) 2025-10-27 11:28:28 +01:00
unit feat: add txt_record filter to format TXT records (#721) 2025-10-31 12:36:19 +01:00
utils ci: update gitlab ci config (#529) 2024-07-09 12:30:49 +02:00
.gitignore Initial commit 2020-03-09 13:36:01 +00:00
config.yml feat!: drop support for Python 3.9 (#712) 2025-10-27 10:40:33 +01:00
constraints.txt ci: add unit tests to azure pipelines (#325) 2023-09-26 09:41:19 +02:00
requirements.yml feat: replace ansible.netcommon utils with python3 ipaddress module (#416) 2023-12-12 11:50:45 +01:00