scap-security-guide/SOURCES/scap-security-guide-0.1.64-fix_ansible_partition_conditional-PR_9339.patch
2022-09-13 09:48:02 +00:00

27 lines
995 B
Diff

From 7db8ad5f312b632d6b8a176b615929ffa5cb1de3 Mon Sep 17 00:00:00 2001
From: Gabriel Becker <ggasparb@redhat.com>
Date: Mon, 15 Aug 2022 14:47:40 +0200
Subject: [PATCH 13/13] Merge pull request #9339 from
yuumasato/fix_ansible_partition_conditionals
Patch-name: scap-security-guide-0.1.64-fix_ansible_partition_conditional-PR_9339.patch
Patch-status: Fix ansible partition conditionals
---
shared/macros/10-ansible.jinja | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/shared/macros/10-ansible.jinja b/shared/macros/10-ansible.jinja
index 5e40fe4aa2..55a78c3a8b 100644
--- a/shared/macros/10-ansible.jinja
+++ b/shared/macros/10-ansible.jinja
@@ -1435,5 +1435,5 @@ Part of the grub2_bootloader_argument_absent template.
{{%- macro ansible_partition_conditional(path) -%}}
-"ansible_facts.ansible_mounts | json_query(\"[?mount=='{{{ path }}}'].mount\") | length == 1"
+'"{{{ path }}}" in ansible_mounts | map(attribute="mount") | list'
{{%- endmacro -%}}
--
2.37.2