From f340c0020ba197e9afa3548f89f90ae9258d2a6e Mon Sep 17 00:00:00 2001 From: Klaus Zerwes Date: Tue, 28 May 2024 12:19:24 +0200 Subject: [PATCH] issue #69 doc hash-algorithm-option fixed --- tasks/ipsecphase2.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tasks/ipsecphase2.yml b/tasks/ipsecphase2.yml index ac75981..1725824 100644 --- a/tasks/ipsecphase2.yml +++ b/tasks/ipsecphase2.yml @@ -233,16 +233,15 @@ verbosity: 1 when: change_hashalgopt is defined -- debug: - var: local_config_path - - name: "IPSec ike phase2 {{ uniqid }} reset hash-algorithm-options for ikeid {{ ikeid }}" delegate_to: localhost # debugger: on_failed community.general.xml: path: "{{ local_config_path }}" - # FIXME: with quotes around jinja2 vars we get a Couldn't delete xpath target ... - # (module 'lxml.etree' has no attribute '_ElementStringResult') ERROR + # issue #69: with quotes around jinja2 vars we get a Couldn't delete xpath target ... + # (module 'lxml.etree' has no attribute '_ElementStringResult') ERROR + # but using a hardcoded xpath with quotes works + # "/opnsense/ipsec/phase2[ikeid='1' and uniqid='eea1dcb2e051a']/hash-algorithm-option" xpath: "/opnsense/ipsec/phase2[ikeid={{ ikeid }} and uniqid={{ uniqid }}]/hash-algorithm-option" state: absent pretty_print: true