-
Notifications
You must be signed in to change notification settings - Fork 64
Closed
Labels
Description
I am attempting to write a playbook for Syncthing and use ansible-xml for managing the config file.
However I seem to be having issues when it comes to attributes.
I have the following task, which I would expect to set the enabled
attribute to yourmom
but it does nothing.
- name: Config | Enable GUI
xml:
file: "{{st_config}}"
xpath: /configuration/gui/@enabled
value: yourmom
I know that st_config
is correct, because this task works just fine:
xml:
file: "{{st_config}}"
xpath: /configuration/gui/address
value: 0.0.0.0:8080
I am also having trouble extracting attribute values via a register
command, that will crash the entire run (rather than failing silently). I was going to enter a ticket for it, however I now wonder if my syntax is incorrect.