Skip to content

Commit

Permalink
issue #69 doc hash-algorithm-option fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Klaus Zerwes authored and Klaus Zerwes committed May 28, 2024
1 parent 9ad7ba1 commit f340c00
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tasks/ipsecphase2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f340c00

Please sign in to comment.