ansible windows -m win_firewall_rule -a 'name="file-node" localport="5001-5014" action=allow protocol=tcp state=present'
ansible windows -m win_firewall_rule -a 'name="NetBIOS" localport=137 action=block protocol=udp state=present'
ansible windows -m win_firewall_rule -a 'name="限制DCE/RPC服务" localport="135" action=block protocol=tcp state=present'
ansible windows -m win_firewall_rule -a 'name="禁用Time Exceeded类型的ICMP包" action=block protocol=icmpv4 state=present'
ansible windows -m win_eventlog -a 'name=Application maximum_size=204800KB overflow_action=OverwriteOlder retention_days=180 state=present'
ansible windows -m win_eventlog -a 'name=System maximum_size=204800KB overflow_action=OverwriteOlder retention_days=180 state=present'
自动化运维windows常用模块ansible windows -m win_firewall_rule -a 'name="file-node" localport="5001-5014" action=allow protocol=tcp state=present'ansible windows -m win_firewall_rule -a 'name="NetBIOS" localport=137 action=block protocol=udp state=present'ansible