From 91ba894643e0da5a5dff146cf91f8b1230760395 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Mon, 5 Jan 2026 18:57:35 +0100 Subject: [PATCH] [stable-11] cloudflare_dns: also allow 128 as a value for flag (#11377) (#11384) cloudflare_dns: also allow 128 as a value for flag (#11377) * Also allow 128 as a value for flag. * Forgot to add changelog fragment. (cherry picked from commit c00fb4fb5ce7f257a127c3b37d54a814d051d776) --- changelogs/fragments/11377-cloudflare_dns-caa.yml | 2 ++ plugins/modules/cloudflare_dns.py | 7 +++++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 changelogs/fragments/11377-cloudflare_dns-caa.yml 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),