diff --git a/changelogs/fragments/11377-cloudflare_dns-caa.yml b/changelogs/fragments/11377-cloudflare_dns-caa.yml new file mode 100644 index 0000000000..6cb6a66a73 --- /dev/null +++ b/changelogs/fragments/11377-cloudflare_dns-caa.yml @@ -0,0 +1,2 @@ +bugfixes: + - "cloudflare_dns - also allow ``flag=128`` for CAA records (https://github.com/ansible-collections/community.general/issues/11355, https://github.com/ansible-collections/community.general/pull/11377)." diff --git a/plugins/modules/cloudflare_dns.py b/plugins/modules/cloudflare_dns.py index 84088f593d..34efd9181f 100644 --- a/plugins/modules/cloudflare_dns.py +++ b/plugins/modules/cloudflare_dns.py @@ -61,9 +61,12 @@ options: flag: description: - Issuer Critical Flag. + - Should be set either to V(0) for not critical, or to V(128) for critical. + - Before community.general 11.4.4, only V(0) and V(1) were valid options. + The value V(1) is still available for backwards-compatibility reasons. - Required for O(type=CAA) when O(state=present). type: int - choices: [0, 1] + choices: [0, 1, 128] version_added: 8.0.0 tag: description: @@ -907,7 +910,7 @@ def main(): hash_type=dict(type='int', choices=[1, 2]), key_tag=dict(type='int', no_log=False), port=dict(type='int'), - flag=dict(type='int', choices=[0, 1]), + flag=dict(type='int', choices=[0, 1, 128]), tag=dict(type='str', choices=['issue', 'issuewild', 'iodef']), tags=dict(type='list', elements='str'), priority=dict(type='int', default=1),