From bb6d5fb73532b7f09f57acc4e76674b4ca2c8f8e Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Mon, 5 Jan 2026 18:57:22 +0100 Subject: [PATCH] [PR #11377/c00fb4fb backport][stable-12] cloudflare_dns: also allow 128 as a value for flag (#11383) 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) Co-authored-by: Felix Fontein --- 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 1e3eca03d0..7cf1e40fd7 100644 --- a/plugins/modules/cloudflare_dns.py +++ b/plugins/modules/cloudflare_dns.py @@ -59,9 +59,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 13.3.0, 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: @@ -923,7 +926,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),