mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-01-11 15:15:26 +01:00
fix REJECT target name SUMMARY Fix setting default target to reject. The target name is %%REJECT%% not REJECT. https://firewalld.org/documentation/zone/options.html After this pull request to way to set REJECT would be - name: "Set target to REJECT for public" ansible.posix.firewalld: zone: public permanent: yes target: '%%REJECT%%' state: enabled become: true ISSUE TYPE Bugfix Pull Request COMPONENT NAME firewalld ADDITIONAL INFORMATION This snippet would fail due to there not being target called REJECT and using %%REJECT%% is not in allowed values for target - name: "Set target to REJECT for public" ansible.posix.firewalld: zone: public permanent: yes target: 'REJECT' state: enabled become: true Ansible error { "msg": "ERROR: Exception caught: org.fedoraproject.FirewallD1.Exception: INVALID_TARGET: REJECT Permanent operation", "invocation": { "module_args": { "zone": "public", "permanent": true, "target": "REJECT", "state": "enabled", "immediate": false, "timeout": 0, "icmp_block": null, "icmp_block_inversion": null, "service": null, "port": null, "port_forward": null, "rich_rule": null, "source": null, "interface": null, "masquerade": null, "offline": null } }, "_ansible_no_log": false, "changed": false } syslog Jun 29 09:49:39 <hostname retracted> ansible-ansible.posix.firewalld[9015]: Invoked with zone=public permanent=True state=enabled target=REJECT immediate=False timeout=0 icmp_[1850/7279] icmp_block_inversion=None service=None port=None port_forward=None rich_rule=None source=None interface=None masquerade=None offline=None Jun 29 09:49:39 <hostname retracted> firewalld[915]: ERROR: INVALID_TARGET: REJECT Reviewed-by: Abhijeet Kasurde <None> Reviewed-by: None <None> Reviewed-by: Amin Vakil <info@aminvakil.com> Reviewed-by: quidame <None> Reviewed-by: Hideki Saito <saito@fgrep.org> |
||
|---|---|---|
| .. | ||
| .keep | ||
| 1.2.0.yml | ||
| 4_update_readme.yml | ||
| 5_enable_tests.yml | ||
| 6_test_devel.yml | ||
| 7_env.yml | ||
| 11-action-plugins-use-fqcn.yml | ||
| 12_migrate_cgroup_perf_recap_graph.yml | ||
| 14_mount_option.yml | ||
| 15_profile_tasks.yml | ||
| 17_authorized_keys.yml | ||
| 19_enable_tags.yml | ||
| 21-mount-module_util-routing-issue.yml | ||
| 23-selinux-doesnt-create-missing-config-keys.yml | ||
| 25_ansible_metadata.yml | ||
| 26_profile_tasks_doc.yml | ||
| 27_update_examples.yml | ||
| 33_mount.yml | ||
| 35_disable_tests.yml | ||
| 37-authorized_keys-inconsistent-check-mode-values.yml | ||
| 39_remove_license.yml | ||
| 43_remove_shippable.yml | ||
| 74_synchronize_docker.yml | ||
| 82-private-key-override-fix.yml | ||
| 99-at_add_aix_support.yml | ||
| 101-sysctl-dont-persist-when-invalid.yml | ||
| 118-synchronize_bugfix.yml | ||
| 120-synchronize_add_option.yml | ||
| 124_acl.yml | ||
| 126_mount_not_returning_backup_file.yml | ||
| 134_authorized_key.yml | ||
| 144_add_community_docker_connection_plugin_alias.yml | ||
| 156-fix_no-log-needed_false_positives.yml | ||
| 159-fix-60-deprecated-ansible_ssh_user.yml | ||
| 167-synchronize-add_delay_option.yml | ||
| 169_add_lineseparator_to_command.yml | ||
| 175_synchronize.yml | ||
| 179_firewalld.yml | ||
| 181-update_codecov_sh_url.yml | ||
| 185_mount_at_boot.yml | ||
| 187-fix-synchronize-become-user.yml | ||
| 193_firewalld.yml | ||
| 196_boot_opt_for_linux.yml | ||
| 203_boot_opt_for_bsd.yml | ||
| 204_csh_shell.yml | ||
| 207-mount_tests.yml | ||
| 213_quote_cmd_args.yml | ||
| 215_fix_REJECT_target_name.yml | ||
| 217-restructure_authrized_key_test.yml | ||
| 65931-json-callback-non-lockstep-output.yml | ||
| firewalld_migration.yml | ||
| firewalld_zone_target.yml | ||
| initial_commit.yaml | ||
| misc_fix.yml | ||
| sanity_test_ignore_file.yml | ||
| skippy_deprecation.yml | ||
| synchronize.yml | ||
| test_matrix.yml | ||