Update win_firewall_rule.py to include ICMP echo (ping) example (#55013)

* Update win_firewall_rule.py

<!--- Your description here -->
Added example of enabling ICMP protocol, as ping is commonly used for troubleshooting in automation scenarios.  Equivalent netsh command is: 
netsh advfirewall firewall add rule name='ICMP Allow incoming V4 echo request' protocol=icmpv4:8,any dir=in action=allow

+label: docsite_pr

* Remove yaml-breaking space

Removed extraneous space that caused validation to fail.

* Remove more extraneous whitespace
This commit is contained in:
dlitster 2019-11-13 18:17:45 -06:00 committed by Jordan Borean
parent 23a751323b
commit 91d0ad9a4c

View file

@ -144,6 +144,7 @@ EXAMPLES = r'''
protocol: tcp
state: present
enabled: yes
- name: Firewall rule to allow port range
win_firewall_rule:
name: Sample port range
@ -153,4 +154,14 @@ EXAMPLES = r'''
protocol: tcp
state: present
enabled: yes
- name: Firewall rule to allow ICMP v4 echo (ping)
win_firewall_rule:
name: ICMP Allow incoming V4 echo request
enabled: yes
state: present
profiles: private
action: allow
direction: in
protocol: "icmpv4:8,any"
'''