Ansible Module xml: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=Internal= * Ansible Concepts =Example= <syntaxhighlight lang='yaml'> - name: Bump Java build heap size to {{build.jvm.heap_max}} MB xml: path...") |
No edit summary |
||
Line 1: | Line 1: | ||
=External= | |||
* https://docs.ansible.com/ansible/latest/collections/community/general/xml_module.html | |||
=Internal= | =Internal= | ||
* [[Ansible Concepts#xml|Ansible Concepts]] | * [[Ansible Concepts#xml|Ansible Concepts]] | ||
=Overview= | |||
The plugin is named <code>community.general.xml</code> and it offers functionality aimed at interacting with XML files, using [[XPath]]. | |||
=Example= | =Example= |
Revision as of 20:50, 4 July 2021
External
Internal
Overview
The plugin is named community.general.xml
and it offers functionality aimed at interacting with XML files, using XPath.
Example
- name: Bump Java build heap size to {{build.jvm.heap_max}} MB
xml:
path: "{{ansible_env.PROJECT_ROOT}}/.idea/compiler.xml"
xpath: /project/component[@name='CompilerConfiguration']/option[@name='BUILD_PROCESS_HEAP_SIZE']
attribute: "value"
value: "{{build.jvm.heap_max}}"