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
pull/60361/head
dlitster 5 years ago committed by Jordan Borean
parent 23a751323b
commit 91d0ad9a4c

@ -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"
'''

Loading…
Cancel
Save