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

推薦閱讀