Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - command: "hostname -I"
- register: IP_ADRESSS
- changed_when: False
- - firewalld:
- interface: eth0
- state: enabled
- permanent: yes
- zone: public
- source: {{ IP_ADDRESS.stdout }}
- notify: "RESTART FIREWALL"
- fatal: [test-server]: FAILED! => {
- "changed": false,
- "invocation": {
- "module_args": {
- "immediate": false,
- "interface": "eth0",
- "masquerade": null,
- "offline": null,
- "permanent": true,
- "port": null,
- "rich_rule": null,
- "service": null,
- "source": "10.0.0.5 "
- "state": "enabled"
- "timeout": 0,
- "zone": "public"
- }
- },
- "msg": "ERROR: Exception caught: org.fedoraproject.FirewallD1.Exception: INVALID_ADDR: 10.0.0.5 Permanent operation"
- }
Add Comment
Please, Sign In to add comment