����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
# -*- coding: utf-8 -*-
# Copyright: (c) 2018, Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
DOCUMENTATION = r'''
---
module: win_xml
short_description: Manages XML file content on Windows hosts
description:
- Manages XML nodes, attributes and text, using xpath to select which xml nodes need to be managed.
- XML fragments, formatted as strings, are used to specify the desired state of a part or parts of XML files on remote Windows servers.
- For non-Windows targets, use the M(community.general.xml) module instead.
options:
attribute:
description:
- The attribute name if the type is 'attribute'.
- Required if C(type=attribute).
type: str
count:
description:
- When set to C(yes), return the number of nodes matched by I(xpath).
type: bool
default: false
backup:
description:
- Determine whether a backup should be created.
- When set to C(yes), create a backup file including the timestamp information
so you can get the original file back if you somehow clobbered it incorrectly.
type: bool
default: no
fragment:
description:
- The string representation of the XML fragment expected at xpath. Since ansible 2.9 not required when I(state=absent), or when I(count=yes).
type: str
required: false
aliases: [ xmlstring ]
path:
description:
- Path to the file to operate on.
type: path
required: true
aliases: [ dest, file ]
state:
description:
- Set or remove the nodes (or attributes) matched by I(xpath).
type: str
default: present
choices: [ present, absent ]
type:
description:
- The type of XML node you are working with.
type: str
default: element
choices: [ attribute, element, text ]
xpath:
description:
- Xpath to select the node or nodes to operate on.
type: str
required: true
author:
- Richard Levenberg (@richardcs)
- Jon Hawkesworth (@jhawkesworth)
notes:
- Only supports operating on xml elements, attributes and text.
- Namespace, processing-instruction, command and document node types cannot be modified with this module.
seealso:
- module: community.general.xml
description: XML manipulation for Posix hosts.
- name: w3shools XPath tutorial
description: A useful tutorial on XPath
link: https://www.w3schools.com/xml/xpath_intro.asp
'''
EXAMPLES = r'''
- name: Apply our filter to Tomcat web.xml
community.windows.win_xml:
path: C:\apache-tomcat\webapps\myapp\WEB-INF\web.xml
fragment: '<filter><filter-name>MyFilter</filter-name><filter-class>com.example.MyFilter</filter-class></filter>'
xpath: '/*'
- name: Apply sslEnabledProtocols to Tomcat's server.xml
community.windows.win_xml:
path: C:\Tomcat\conf\server.xml
xpath: '//Server/Service[@name="Catalina"]/Connector[@port="9443"]'
attribute: 'sslEnabledProtocols'
fragment: 'TLSv1,TLSv1.1,TLSv1.2'
type: attribute
- name: remove debug configuration nodes from nlog.conf
community.windows.win_xml:
path: C:\IISApplication\nlog.conf
xpath: /nlog/rules/logger[@name="debug"]/descendant::*
state: absent
- name: count configured connectors in Tomcat's server.xml
community.windows.win_xml:
path: C:\Tomcat\conf\server.xml
xpath: //Server/Service/Connector
count: yes
register: connector_count
- name: show connector count
debug:
msg="Connector count is {{connector_count.count}}"
- name: ensure all lang=en attributes to lang=nl
community.windows.win_xml:
path: C:\Data\Books.xml
xpath: //@[lang="en"]
attribute: lang
fragment: nl
type: attribute
'''
RETURN = r'''
backup_file:
description: Name of the backup file that was created.
returned: if backup=yes
type: str
sample: C:\Path\To\File.txt.11540.20150212-220915.bak
count:
description: Number of nodes matched by xpath.
returned: if count=yes
type: int
sample: 33
msg:
description: What was done.
returned: always
type: str
sample: "xml added"
err:
description: XML comparison exceptions.
returned: always, for type element and -vvv or more
type: list
sample: attribute mismatch for actual=string
'''
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| __pycache__ | Folder | 0755 |
|
|
| __init__.py | File | 0 B | 0644 |
|
| psexec.py | File | 18.61 KB | 0644 |
|
| win_audit_policy_system.ps1 | File | 5.15 KB | 0644 |
|
| win_audit_policy_system.py | File | 2.11 KB | 0644 |
|
| win_audit_rule.ps1 | File | 6.66 KB | 0644 |
|
| win_audit_rule.py | File | 4.71 KB | 0644 |
|
| win_auto_logon.ps1 | File | 13.93 KB | 0644 |
|
| win_auto_logon.py | File | 1.99 KB | 0644 |
|
| win_certificate_info.ps1 | File | 4.98 KB | 0644 |
|
| win_certificate_info.py | File | 7.73 KB | 0644 |
|
| win_computer_description.ps1 | File | 1.82 KB | 0644 |
|
| win_computer_description.py | File | 1.67 KB | 0644 |
|
| win_credential.ps1 | File | 28.41 KB | 0644 |
|
| win_credential.py | File | 6.72 KB | 0644 |
|
| win_data_deduplication.ps1 | File | 3.93 KB | 0644 |
|
| win_data_deduplication.py | File | 2.4 KB | 0644 |
|
| win_defrag.ps1 | File | 2.6 KB | 0644 |
|
| win_defrag.py | File | 2.59 KB | 0644 |
|
| win_dhcp_lease.ps1 | File | 14.15 KB | 0644 |
|
| win_dhcp_lease.py | File | 4.18 KB | 0644 |
|
| win_disk_facts.ps1 | File | 13.22 KB | 0644 |
|
| win_disk_facts.py | File | 46.9 KB | 0644 |
|
| win_disk_image.ps1 | File | 2.63 KB | 0644 |
|
| win_disk_image.py | File | 1.67 KB | 0644 |
|
| win_dns_record.ps1 | File | 8.35 KB | 0644 |
|
| win_dns_record.py | File | 5.1 KB | 0644 |
|
| win_dns_zone.ps1 | File | 11.84 KB | 0644 |
|
| win_dns_zone.py | File | 5.39 KB | 0644 |
|
| win_domain_computer.ps1 | File | 11.06 KB | 0644 |
|
| win_domain_computer.py | File | 8.71 KB | 0644 |
|
| win_domain_group.ps1 | File | 14.9 KB | 0644 |
|
| win_domain_group.py | File | 7.28 KB | 0644 |
|
| win_domain_group_membership.ps1 | File | 5.1 KB | 0644 |
|
| win_domain_group_membership.py | File | 3.9 KB | 0644 |
|
| win_domain_object_info.ps1 | File | 10.84 KB | 0644 |
|
| win_domain_object_info.py | File | 6.64 KB | 0644 |
|
| win_domain_ou.ps1 | File | 8.55 KB | 0644 |
|
| win_domain_ou.py | File | 4.97 KB | 0644 |
|
| win_domain_user.ps1 | File | 21.13 KB | 0644 |
|
| win_domain_user.py | File | 14.23 KB | 0644 |
|
| win_dotnet_ngen.ps1 | File | 2.09 KB | 0644 |
|
| win_dotnet_ngen.py | File | 2.74 KB | 0644 |
|
| win_eventlog.ps1 | File | 10.82 KB | 0644 |
|
| win_eventlog.py | File | 4.82 KB | 0644 |
|
| win_eventlog_entry.ps1 | File | 2.96 KB | 0644 |
|
| win_eventlog_entry.py | File | 2.04 KB | 0644 |
|
| win_feature_info.ps1 | File | 1.46 KB | 0644 |
|
| win_feature_info.py | File | 4.6 KB | 0644 |
|
| win_file_compression.ps1 | File | 4.11 KB | 0644 |
|
| win_file_compression.py | File | 3.05 KB | 0644 |
|
| win_file_version.ps1 | File | 2.11 KB | 0644 |
|
| win_file_version.py | File | 1.46 KB | 0644 |
|
| win_firewall.ps1 | File | 3.6 KB | 0644 |
|
| win_firewall.py | File | 2.24 KB | 0644 |
|
| win_firewall_rule.ps1 | File | 14.66 KB | 0644 |
|
| win_firewall_rule.py | File | 5.55 KB | 0644 |
|
| win_format.ps1 | File | 7.44 KB | 0644 |
|
| win_format.py | File | 3.46 KB | 0644 |
|
| win_hosts.ps1 | File | 9.75 KB | 0644 |
|
| win_hosts.py | File | 3.77 KB | 0644 |
|
| win_hotfix.ps1 | File | 9.59 KB | 0644 |
|
| win_hotfix.py | File | 4.72 KB | 0644 |
|
| win_http_proxy.ps1 | File | 9 KB | 0644 |
|
| win_http_proxy.py | File | 3.37 KB | 0644 |
|
| win_iis_virtualdirectory.ps1 | File | 4.55 KB | 0644 |
|
| win_iis_virtualdirectory.py | File | 2.91 KB | 0644 |
|
| win_iis_webapplication.ps1 | File | 5.33 KB | 0644 |
|
| win_iis_webapplication.py | File | 2.74 KB | 0644 |
|
| win_iis_webapppool.ps1 | File | 12.36 KB | 0644 |
|
| win_iis_webapppool.py | File | 7.03 KB | 0644 |
|
| win_iis_webbinding.ps1 | File | 13.49 KB | 0644 |
|
| win_iis_webbinding.py | File | 3.91 KB | 0644 |
|
| win_iis_website.ps1 | File | 5.84 KB | 0644 |
|
| win_iis_website.py | File | 4.15 KB | 0644 |
|
| win_inet_proxy.ps1 | File | 19.09 KB | 0644 |
|
| win_inet_proxy.py | File | 5.95 KB | 0644 |
|
| win_initialize_disk.ps1 | File | 4.4 KB | 0644 |
|
| win_initialize_disk.py | File | 2.12 KB | 0644 |
|
| win_lineinfile.ps1 | File | 14.75 KB | 0644 |
|
| win_lineinfile.py | File | 6.88 KB | 0644 |
|
| win_listen_ports_facts.ps1 | File | 2.39 KB | 0644 |
|
| win_listen_ports_facts.py | File | 2.88 KB | 0644 |
|
| win_mapped_drive.ps1 | File | 17.09 KB | 0644 |
|
| win_mapped_drive.py | File | 5.19 KB | 0644 |
|
| win_msg.ps1 | File | 1.48 KB | 0644 |
|
| win_msg.py | File | 2.83 KB | 0644 |
|
| win_net_adapter_feature.ps1 | File | 2.33 KB | 0644 |
|
| win_net_adapter_feature.py | File | 2.01 KB | 0644 |
|
| win_netbios.ps1 | File | 2.6 KB | 0644 |
|
| win_netbios.py | File | 1.99 KB | 0644 |
|
| win_nssm.ps1 | File | 21.52 KB | 0644 |
|
| win_nssm.py | File | 6.53 KB | 0644 |
|
| win_pagefile.ps1 | File | 8.7 KB | 0644 |
|
| win_pagefile.py | File | 3.78 KB | 0644 |
|
| win_partition.ps1 | File | 12.07 KB | 0644 |
|
| win_partition.py | File | 4.44 KB | 0644 |
|
| win_pester.ps1 | File | 3.6 KB | 0644 |
|
| win_pester.py | File | 2.91 KB | 0644 |
|
| win_power_plan.ps1 | File | 7.28 KB | 0644 |
|
| win_power_plan.py | File | 1.94 KB | 0644 |
|
| win_product_facts.ps1 | File | 3.23 KB | 0644 |
|
| win_product_facts.py | File | 1.57 KB | 0644 |
|
| win_psexec.ps1 | File | 4.33 KB | 0644 |
|
| win_psexec.py | File | 4.7 KB | 0644 |
|
| win_psmodule.ps1 | File | 20.01 KB | 0644 |
|
| win_psmodule.py | File | 5.87 KB | 0644 |
|
| win_psmodule_info.ps1 | File | 11.51 KB | 0644 |
|
| win_psmodule_info.py | File | 14.31 KB | 0644 |
|
| win_psrepository.ps1 | File | 6.95 KB | 0644 |
|
| win_psrepository.py | File | 5.72 KB | 0644 |
|
| win_psrepository_copy.ps1 | File | 6.45 KB | 0644 |
|
| win_psrepository_copy.py | File | 5.51 KB | 0644 |
|
| win_psrepository_info.ps1 | File | 2.09 KB | 0644 |
|
| win_psrepository_info.py | File | 3.07 KB | 0644 |
|
| win_psscript.ps1 | File | 6.02 KB | 0644 |
|
| win_psscript.py | File | 3.76 KB | 0644 |
|
| win_psscript_info.ps1 | File | 3.78 KB | 0644 |
|
| win_psscript_info.py | File | 6.36 KB | 0644 |
|
| win_pssession_configuration.ps1 | File | 22.56 KB | 0644 |
|
| win_pssession_configuration.py | File | 14.37 KB | 0644 |
|
| win_rabbitmq_plugin.ps1 | File | 5.05 KB | 0644 |
|
| win_rabbitmq_plugin.py | File | 1.29 KB | 0644 |
|
| win_rds_cap.ps1 | File | 17.3 KB | 0644 |
|
| win_rds_cap.py | File | 4.07 KB | 0644 |
|
| win_rds_rap.ps1 | File | 12.53 KB | 0644 |
|
| win_rds_rap.py | File | 2.92 KB | 0644 |
|
| win_rds_settings.ps1 | File | 4.28 KB | 0644 |
|
| win_rds_settings.py | File | 1.75 KB | 0644 |
|
| win_region.ps1 | File | 17.22 KB | 0644 |
|
| win_region.py | File | 3.19 KB | 0644 |
|
| win_regmerge.ps1 | File | 3.27 KB | 0644 |
|
| win_regmerge.py | File | 3.09 KB | 0644 |
|
| win_robocopy.ps1 | File | 4.09 KB | 0644 |
|
| win_robocopy.py | File | 4.23 KB | 0644 |
|
| win_route.ps1 | File | 3.08 KB | 0644 |
|
| win_route.py | File | 1.43 KB | 0644 |
|
| win_say.ps1 | File | 3.27 KB | 0644 |
|
| win_say.py | File | 3.87 KB | 0644 |
|
| win_scheduled_task.ps1 | File | 52.41 KB | 0644 |
|
| win_scheduled_task.py | File | 18.89 KB | 0644 |
|
| win_scheduled_task_stat.ps1 | File | 13.08 KB | 0644 |
|
| win_scheduled_task_stat.py | File | 10.02 KB | 0644 |
|
| win_scoop.ps1 | File | 10.01 KB | 0644 |
|
| win_scoop.py | File | 1.91 KB | 0644 |
|
| win_scoop_bucket.ps1 | File | 3.36 KB | 0644 |
|
| win_scoop_bucket.py | File | 1.74 KB | 0644 |
|
| win_security_policy.ps1 | File | 7.6 KB | 0644 |
|
| win_security_policy.py | File | 3.6 KB | 0644 |
|
| win_shortcut.ps1 | File | 13.56 KB | 0644 |
|
| win_shortcut.py | File | 3.77 KB | 0644 |
|
| win_snmp.ps1 | File | 4.75 KB | 0644 |
|
| win_snmp.py | File | 1.8 KB | 0644 |
|
| win_timezone.ps1 | File | 2.28 KB | 0644 |
|
| win_timezone.py | File | 1.96 KB | 0644 |
|
| win_toast.ps1 | File | 3.45 KB | 0644 |
|
| win_toast.py | File | 2.99 KB | 0644 |
|
| win_unzip.ps1 | File | 7.11 KB | 0644 |
|
| win_unzip.py | File | 3.67 KB | 0644 |
|
| win_user_profile.ps1 | File | 6.77 KB | 0644 |
|
| win_user_profile.py | File | 3.54 KB | 0644 |
|
| win_wait_for_process.ps1 | File | 5.64 KB | 0644 |
|
| win_wait_for_process.py | File | 3.84 KB | 0644 |
|
| win_wakeonlan.ps1 | File | 1.42 KB | 0644 |
|
| win_wakeonlan.py | File | 1.62 KB | 0644 |
|
| win_webpicmd.ps1 | File | 2.32 KB | 0644 |
|
| win_webpicmd.py | File | 1.19 KB | 0644 |
|
| win_xml.ps1 | File | 10.39 KB | 0644 |
|
| win_xml.py | File | 4.33 KB | 0644 |
|
| win_zip.ps1 | File | 2.54 KB | 0644 |
|
| win_zip.py | File | 1.53 KB | 0644 |
|