设置允许http流量的传入
[student@ansible ansible]$ ansible node1 -m firewalld -a 'service=http permanent=yes state=enabled immediate=yes'node1 | CHANGED => { "ansible_facts": { "discovered_interpreter_python": "/usr/libexec/platform-python" }, "changed": true, "msg": "Permanent and Non-Permanent(immediate) operation, Changed service http to enabled"}测试
[student@ansible ansible]$ curl http://node1my name is luojialong
推荐阅读
- 这才是使用ps命令的正确姿势
- Ansible 批处理实战
- 小米手环6nfc使用体验_小米手环6nfc使用测评
- CF中怎么改名(cf买了改名卡怎么使用)
- 使用LEFT JOIN 统计左右存在的数据
- ansible应用之安装elk框架
- 使用 etcdadm 快速、弹性部署 etcd 集群
- Android RecyclerView使用ListAdapter高效刷新数据
- 使用 Windows Core Audio APs 进行 Loopback Recording 并生成 WAV 文件
- 4 .NET 6学习笔记——如何在.NET 6的Desktop App中使用Windows Runtime API