ansible---2.9自动化运维windows常用模块
·
自动化运维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 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'
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐


所有评论(0)