ansible 修改firewalld_ansible 常用模块:firewalld 使用

- name: Manage arbitrary ports/services with firewalld

firewalld:

icmp_block: # The ICMP block you would like to add/remove to/from a zone in firewalld.

icmp_block_inversion: # Enable/Disable inversion of ICMP blocks for a zone in firewalld.

immediate: # Should this configuration be applied immediately, if set as permanent.

interface: # The interface you would like to add/remove to/from a zone in firewalld.

masquerade: # The masquerade setting you would like to enable/disable to/from zones within firewalld.

offline: # Whether to run this module even when firewalld is offline.

permanent: # Should this configuration be in the running firewalld configuration or persist across reboots. As of Ansible 2.3, permanent

operations can operate on firewalld configs when it is not running (requires firewalld >= 3.0.9).

Note that if this is `no', immediate is as

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值