ansible使用临时命令通过模块来执行任务( 六 )

设置允许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

推荐阅读