diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 7781632..1fd693d 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -5,6 +5,49 @@ ansible.posix Release Notes .. contents:: Topics +v1.3.0 +====== + +Release Summary +--------------- + +This is the minor release of the ``ansible.posix`` collection. +This changelog contains all changes to the modules in this collection that +have been added after the release of ``ansible.posix`` 1.2.0. + +Minor Changes +------------- + +- acl - add new alias ``recurse`` for ``recursive`` parameter (https://github.com/ansible-collections/ansible.posix/issues/124). +- added 2.11 branch to test matrix, added ignore-2.12.txt. +- authorized_key - add ``no_log=False`` in ``argument_spec`` to clear false-positives of ``no-log-needed`` (https://github.com/ansible-collections/ansible.posix/pull/156). +- authorized_key - add a list of valid key types (https://github.com/ansible-collections/ansible.posix/issues/134). +- mount - Change behavior of ``boot`` option to set ``noauto`` on BSD nodes (https://github.com/ansible-collections/ansible.posix/issues/28). +- mount - Change behavior of ``boot`` option to set ``noauto`` on Linux nodes (https://github.com/ansible-collections/ansible.posix/issues/28). +- mount - add ``no_log=False`` in ``argument_spec`` to clear false-positives of ``no-log-needed`` (https://github.com/ansible-collections/ansible.posix/pull/156). +- mount - returns ``backup_file`` value when a backup fstab is created. +- synchronize - add ``delay_updates`` option (https://github.com/ansible-collections/ansible.posix/issues/157). +- synchronize - fix typo (https://github.com/ansible-collections/ansible.posix/pull/198). + +Bugfixes +-------- + +- Synchronize module not recognizing remote ssh key (https://github.com/ansible-collections/ansible.posix/issues/24). +- Synchronize not using quotes around arguments like --out-format (https://github.com/ansible-collections/ansible.posix/issues/190). +- at - append line-separator to the end of the ``command`` (https://github.com/ansible-collections/ansible.posix/issues/169). +- csh - define ``ECHO`` and ``COMMAND_SEP`` (https://github.com/ansible-collections/ansible.posix/issues/204). +- firewalld - enable integration after migration (https://github.com/ansible-collections/ansible.posix/pull/239). +- firewalld - ensure idempotency with firewalld 0.9.3 (https://github.com/ansible-collections/ansible.posix/issues/179). +- firewalld - fix setting zone target to ``%%REJECT%%`` (https://github.com/ansible-collections/ansible.posix/pull/215). +- mount - Handle ``boot`` option on Solaris correctly (https://github.com/ansible-collections/ansible.posix/issues/184). +- synchronize - add ``community.podman.podman`` to the list of supported connection plugins (https://github.com/ansible-community/molecule-podman/issues/45). +- synchronize - complete podman support for synchronize module. +- synchronize - properly quote rsync CLI parameters (https://github.com/ansible-collections/ansible.posix/pull/241). +- synchronize - replace removed ``ansible_ssh_user`` by ``ansible_user`` everywhere; do the same for ``ansible_ssh_port`` and ``ansible_ssh_host`` (https://github.com/ansible-collections/ansible.posix/issues/60). +- synchronize - use SSH args from SSH connection plugin (https://github.com/ansible-collections/ansible.posix/issues/222). +- synchronize - use become_user when invoking rsync on remote with sudo (https://github.com/ansible-collections/ansible.posix/issues/186). +- sysctl - modifying conditional check for docker to fix tests being skipped (https://github.com/ansible-collections/ansible.posix/pull/226). + v1.2.0 ====== @@ -26,9 +69,9 @@ Bugfixes -------- - at - add AIX support (https://github.com/ansible-collections/ansible.posix/pull/99). -- synchronize - fix for private_key overriding in synchronize module. - synchronize - add ``community.docker.docker`` to the list of supported transports (https://github.com/ansible-collections/ansible.posix/issues/132). - synchronize - do not prepend PWD when path is in form user@server:path or server:path (https://github.com/ansible-collections/ansible.posix/pull/118). +- synchronize - fix for private_key overriding in synchronize module. - sysctl - do not persist sysctl when value is invalid (https://github.com/ansible-collections/ansible.posix/pull/101). v1.1.1 diff --git a/README.md b/README.md index db8e3ac..2c7c169 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,7 @@ Name | Description [ansible.posix.at](https://github.com/ansible-collections/ansible.posix/blob/main/docs/ansible.posix.at_module.rst)|Schedule the execution of a command or script file via the at command [ansible.posix.authorized_key](https://github.com/ansible-collections/ansible.posix/blob/main/docs/ansible.posix.authorized_key_module.rst)|Adds or removes an SSH authorized key [ansible.posix.firewalld](https://github.com/ansible-collections/ansible.posix/blob/main/docs/ansible.posix.firewalld_module.rst)|Manage arbitrary ports/services with firewalld +[ansible.posix.firewalld_info](https://github.com/ansible-collections/ansible.posix/blob/main/docs/ansible.posix.firewalld_info_module.rst)|Gather information about firewalld [ansible.posix.mount](https://github.com/ansible-collections/ansible.posix/blob/main/docs/ansible.posix.mount_module.rst)|Control active and configured mount points [ansible.posix.patch](https://github.com/ansible-collections/ansible.posix/blob/main/docs/ansible.posix.patch_module.rst)|Apply patch files using the GNU patch tool [ansible.posix.seboolean](https://github.com/ansible-collections/ansible.posix/blob/main/docs/ansible.posix.seboolean_module.rst)|Toggles SELinux booleans diff --git a/changelogs/changelog.yaml b/changelogs/changelog.yaml index fd899d5..828127b 100644 --- a/changelogs/changelog.yaml +++ b/changelogs/changelog.yaml @@ -107,11 +107,11 @@ releases: changes: bugfixes: - at - add AIX support (https://github.com/ansible-collections/ansible.posix/pull/99). - - synchronize - fix for private_key overriding in synchronize module. - synchronize - add ``community.docker.docker`` to the list of supported transports (https://github.com/ansible-collections/ansible.posix/issues/132). - synchronize - do not prepend PWD when path is in form user@server:path or server:path (https://github.com/ansible-collections/ansible.posix/pull/118). + - synchronize - fix for private_key overriding in synchronize module. - sysctl - do not persist sysctl when value is invalid (https://github.com/ansible-collections/ansible.posix/pull/101). minor_changes: - firewalld - bring the ``target`` feature back (https://github.com/ansible-collections/ansible.posix/issues/112). @@ -134,3 +134,79 @@ releases: - firewalld_zone_target.yml - misc_fix.yml release_date: '2021-03-08' + 1.3.0: + changes: + bugfixes: + - Synchronize module not recognizing remote ssh key (https://github.com/ansible-collections/ansible.posix/issues/24). + - Synchronize not using quotes around arguments like --out-format (https://github.com/ansible-collections/ansible.posix/issues/190). + - at - append line-separator to the end of the ``command`` (https://github.com/ansible-collections/ansible.posix/issues/169). + - csh - define ``ECHO`` and ``COMMAND_SEP`` (https://github.com/ansible-collections/ansible.posix/issues/204). + - firewalld - enable integration after migration (https://github.com/ansible-collections/ansible.posix/pull/239). + - firewalld - ensure idempotency with firewalld 0.9.3 (https://github.com/ansible-collections/ansible.posix/issues/179). + - firewalld - fix setting zone target to ``%%REJECT%%`` (https://github.com/ansible-collections/ansible.posix/pull/215). + - mount - Handle ``boot`` option on Solaris correctly (https://github.com/ansible-collections/ansible.posix/issues/184). + - synchronize - add ``community.podman.podman`` to the list of supported connection + plugins (https://github.com/ansible-community/molecule-podman/issues/45). + - synchronize - complete podman support for synchronize module. + - synchronize - properly quote rsync CLI parameters (https://github.com/ansible-collections/ansible.posix/pull/241). + - synchronize - replace removed ``ansible_ssh_user`` by ``ansible_user`` everywhere; + do the same for ``ansible_ssh_port`` and ``ansible_ssh_host`` (https://github.com/ansible-collections/ansible.posix/issues/60). + - synchronize - use SSH args from SSH connection plugin (https://github.com/ansible-collections/ansible.posix/issues/222). + - synchronize - use become_user when invoking rsync on remote with sudo (https://github.com/ansible-collections/ansible.posix/issues/186). + - sysctl - modifying conditional check for docker to fix tests being skipped + (https://github.com/ansible-collections/ansible.posix/pull/226). + minor_changes: + - acl - add new alias ``recurse`` for ``recursive`` parameter (https://github.com/ansible-collections/ansible.posix/issues/124). + - added 2.11 branch to test matrix, added ignore-2.12.txt. + - authorized_key - add ``no_log=False`` in ``argument_spec`` to clear false-positives + of ``no-log-needed`` (https://github.com/ansible-collections/ansible.posix/pull/156). + - authorized_key - add a list of valid key types (https://github.com/ansible-collections/ansible.posix/issues/134). + - mount - Change behavior of ``boot`` option to set ``noauto`` on BSD nodes + (https://github.com/ansible-collections/ansible.posix/issues/28). + - mount - Change behavior of ``boot`` option to set ``noauto`` on Linux nodes + (https://github.com/ansible-collections/ansible.posix/issues/28). + - mount - add ``no_log=False`` in ``argument_spec`` to clear false-positives + of ``no-log-needed`` (https://github.com/ansible-collections/ansible.posix/pull/156). + - mount - returns ``backup_file`` value when a backup fstab is created. + - synchronize - add ``delay_updates`` option (https://github.com/ansible-collections/ansible.posix/issues/157). + - synchronize - fix typo (https://github.com/ansible-collections/ansible.posix/pull/198). + release_summary: 'This is the minor release of the ``ansible.posix`` collection. + + This changelog contains all changes to the modules in this collection that + + have been added after the release of ``ansible.posix`` 1.2.0.' + fragments: + - 1.3.0.yml + - 124_acl.yml + - 126_mount_not_returning_backup_file.yml + - 134_authorized_key.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 + - 214-add_firewalld_info_module.yml + - 215_fix_REJECT_target_name.yml + - 217-restructure_authrized_key_test.yml + - 222_synchronize.yml + - 226_sysctl_fix_integration_test.yml + - 229_add_podman_connection_plugin_to_synchronize.yml + - 230_complete_podman_support_for_synchronize.yml + - 233-fix-wrong-firewalld-version-info.yml + - 241-synchronize-shell-quoting.yml + - firewalld_integ_test.yml + - firewalld_test.yml + - sanity_test_ignore_file.yml + - synchronize.yml + - test_matrix.yml + release_date: '2021-08-11' diff --git a/changelogs/config.yaml b/changelogs/config.yaml index e23c876..a4fbd6c 100644 --- a/changelogs/config.yaml +++ b/changelogs/config.yaml @@ -2,7 +2,7 @@ changelog_filename_template: ../CHANGELOG.rst changelog_filename_version_depth: 0 changes_file: changelog.yaml changes_format: combined -keep_fragments: true +keep_fragments: false mention_ancestor: true new_plugins_after_name: removed_features notesdir: fragments diff --git a/changelogs/fragments/1.2.0.yml b/changelogs/fragments/1.2.0.yml deleted file mode 100644 index 1a4be39..0000000 --- a/changelogs/fragments/1.2.0.yml +++ /dev/null @@ -1,4 +0,0 @@ -release_summary: |- - This is the minor release of the ``ansible.posix`` collection. - This changelog contains all changes to the modules in this collection that - have been added after the release of ``ansible.posix`` 1.1.0. diff --git a/changelogs/fragments/101-sysctl-dont-persist-when-invalid.yml b/changelogs/fragments/101-sysctl-dont-persist-when-invalid.yml deleted file mode 100644 index cfba0eb..0000000 --- a/changelogs/fragments/101-sysctl-dont-persist-when-invalid.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -bugfixes: - - sysctl - do not persist sysctl when value is invalid (https://github.com/ansible-collections/ansible.posix/pull/101). diff --git a/changelogs/fragments/11-action-plugins-use-fqcn.yml b/changelogs/fragments/11-action-plugins-use-fqcn.yml deleted file mode 100644 index b41bf3d..0000000 --- a/changelogs/fragments/11-action-plugins-use-fqcn.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -bugfixes: - - patch - fix FQCN usage for action plugin (https://github.com/ansible-collections/ansible.posix/issues/11) - - synchronize - fix FQCN usage for action plugin (https://github.com/ansible-collections/ansible.posix/issues/11) diff --git a/changelogs/fragments/118-synchronize_bugfix.yml b/changelogs/fragments/118-synchronize_bugfix.yml deleted file mode 100644 index 1b888dc..0000000 --- a/changelogs/fragments/118-synchronize_bugfix.yml +++ /dev/null @@ -1,2 +0,0 @@ -bugfixes: -- "synchronize - do not prepend PWD when path is in form user@server:path or server:path (https://github.com/ansible-collections/ansible.posix/pull/118)." diff --git a/changelogs/fragments/120-synchronize_add_option.yml b/changelogs/fragments/120-synchronize_add_option.yml deleted file mode 100644 index 2db7cec..0000000 --- a/changelogs/fragments/120-synchronize_add_option.yml +++ /dev/null @@ -1,2 +0,0 @@ -minor_changes: -- synchronize - add the ``ssh_connection_multiplexing`` option to allow SSH connection multiplexing (https://github.com/ansible/ansible/issues/24365). diff --git a/changelogs/fragments/124_acl.yml b/changelogs/fragments/124_acl.yml deleted file mode 100644 index 5eee72a..0000000 --- a/changelogs/fragments/124_acl.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -minor_changes: -- acl - add new alias ``recurse`` for ``recursive`` parameter (https://github.com/ansible-collections/ansible.posix/issues/124). diff --git a/changelogs/fragments/126_mount_not_returning_backup_file.yml b/changelogs/fragments/126_mount_not_returning_backup_file.yml deleted file mode 100644 index b4746f4..0000000 --- a/changelogs/fragments/126_mount_not_returning_backup_file.yml +++ /dev/null @@ -1,2 +0,0 @@ -minor_changes: -- mount - returns ``backup_file`` value when a backup fstab is created. diff --git a/changelogs/fragments/12_migrate_cgroup_perf_recap_graph.yml b/changelogs/fragments/12_migrate_cgroup_perf_recap_graph.yml deleted file mode 100644 index c5dd1f6..0000000 --- a/changelogs/fragments/12_migrate_cgroup_perf_recap_graph.yml +++ /dev/null @@ -1,2 +0,0 @@ -minor_changes: -- Migrate hacking/cgroup_perf_recap_graph.py to this collection, since the cgroup_perf_recap callback lives here. \ No newline at end of file diff --git a/changelogs/fragments/134_authorized_key.yml b/changelogs/fragments/134_authorized_key.yml deleted file mode 100644 index 38a47dc..0000000 --- a/changelogs/fragments/134_authorized_key.yml +++ /dev/null @@ -1,2 +0,0 @@ -minor_changes: -- authorized_key - add a list of valid key types (https://github.com/ansible-collections/ansible.posix/issues/134). diff --git a/changelogs/fragments/144_add_community_docker_connection_plugin_alias.yml b/changelogs/fragments/144_add_community_docker_connection_plugin_alias.yml deleted file mode 100644 index 345b777..0000000 --- a/changelogs/fragments/144_add_community_docker_connection_plugin_alias.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -bugfixes: - - synchronize - add ``community.docker.docker`` to the list of supported - transports (https://github.com/ansible-collections/ansible.posix/issues/132). diff --git a/changelogs/fragments/14_mount_option.yml b/changelogs/fragments/14_mount_option.yml deleted file mode 100644 index e34d4cb..0000000 --- a/changelogs/fragments/14_mount_option.yml +++ /dev/null @@ -1,2 +0,0 @@ -bugfixes: -- Mount - Handle remount with new options (https://github.com/ansible/ansible/issues/59460). \ No newline at end of file diff --git a/changelogs/fragments/156-fix_no-log-needed_false_positives.yml b/changelogs/fragments/156-fix_no-log-needed_false_positives.yml deleted file mode 100644 index 07f2996..0000000 --- a/changelogs/fragments/156-fix_no-log-needed_false_positives.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -minor_changes: - - authorized_key - add ``no_log=False`` in ``argument_spec`` to clear false-positives of ``no-log-needed`` (https://github.com/ansible-collections/ansible.posix/pull/156). - - mount - add ``no_log=False`` in ``argument_spec`` to clear false-positives of ``no-log-needed`` (https://github.com/ansible-collections/ansible.posix/pull/156). diff --git a/changelogs/fragments/159-fix-60-deprecated-ansible_ssh_user.yml b/changelogs/fragments/159-fix-60-deprecated-ansible_ssh_user.yml deleted file mode 100644 index 3005ce9..0000000 --- a/changelogs/fragments/159-fix-60-deprecated-ansible_ssh_user.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -bugfixes: - - synchronize - replace removed ``ansible_ssh_user`` by ``ansible_user`` everywhere; do the same for - ``ansible_ssh_port`` and ``ansible_ssh_host`` (https://github.com/ansible-collections/ansible.posix/issues/60). diff --git a/changelogs/fragments/15_profile_tasks.yml b/changelogs/fragments/15_profile_tasks.yml deleted file mode 100644 index bc37545..0000000 --- a/changelogs/fragments/15_profile_tasks.yml +++ /dev/null @@ -1,2 +0,0 @@ -bugfixes: -- Profile_tasks - result was a odict_items which is not subscriptable, so the slicing was failing (https://github.com/ansible/ansible/issues/59059). \ No newline at end of file diff --git a/changelogs/fragments/167-synchronize-add_delay_option.yml b/changelogs/fragments/167-synchronize-add_delay_option.yml deleted file mode 100644 index 38070f4..0000000 --- a/changelogs/fragments/167-synchronize-add_delay_option.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -minor_changes: - - synchronize - add ``delay_updates`` option (https://github.com/ansible-collections/ansible.posix/issues/157). diff --git a/changelogs/fragments/169_add_lineseparator_to_command.yml b/changelogs/fragments/169_add_lineseparator_to_command.yml deleted file mode 100644 index 9497ba5..0000000 --- a/changelogs/fragments/169_add_lineseparator_to_command.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -bugfixes: - - at - append line-separator to the end of the ``command`` (https://github.com/ansible-collections/ansible.posix/issues/169). diff --git a/changelogs/fragments/175_synchronize.yml b/changelogs/fragments/175_synchronize.yml deleted file mode 100644 index 4d1a161..0000000 --- a/changelogs/fragments/175_synchronize.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -trivial: -- synchronize - fix typo in ``delete`` parameter (https://github.com/ansible-collections/ansible.posix/issues/175). diff --git a/changelogs/fragments/179_firewalld.yml b/changelogs/fragments/179_firewalld.yml deleted file mode 100644 index 782cebb..0000000 --- a/changelogs/fragments/179_firewalld.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -bugfixes: -- firewalld - ensure idempotency with firewalld 0.9.3 (https://github.com/ansible-collections/ansible.posix/issues/179). diff --git a/changelogs/fragments/17_authorized_keys.yml b/changelogs/fragments/17_authorized_keys.yml deleted file mode 100644 index ab430fa..0000000 --- a/changelogs/fragments/17_authorized_keys.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -bugfixes: -- authorized_keys - Added FIDO2 security keys (https://github.com/ansible-collections/ansible.posix/issues/17). diff --git a/changelogs/fragments/181-update_codecov_sh_url.yml b/changelogs/fragments/181-update_codecov_sh_url.yml deleted file mode 100644 index 3042c3e..0000000 --- a/changelogs/fragments/181-update_codecov_sh_url.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -trivial: - - testing - update codecov.sh URL (https://github.com/ansible-collections/ansible.posix/pull/181). diff --git a/changelogs/fragments/185_mount_at_boot.yml b/changelogs/fragments/185_mount_at_boot.yml deleted file mode 100644 index 1979533..0000000 --- a/changelogs/fragments/185_mount_at_boot.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -bugfixes: -- "mount - Handle ``boot`` option on Solaris correctly (https://github.com/ansible-collections/ansible.posix/issues/184)." diff --git a/changelogs/fragments/187-fix-synchronize-become-user.yml b/changelogs/fragments/187-fix-synchronize-become-user.yml deleted file mode 100644 index 77d72e0..0000000 --- a/changelogs/fragments/187-fix-synchronize-become-user.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -bugfixes: - - synchronize - use become_user when invoking rsync on remote with sudo - (https://github.com/ansible-collections/ansible.posix/issues/186). diff --git a/changelogs/fragments/193_firewalld.yml b/changelogs/fragments/193_firewalld.yml deleted file mode 100644 index 088a268..0000000 --- a/changelogs/fragments/193_firewalld.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -trivial: -- firewalld - specify unit for ``timeout`` parameter in docs (https://github.com/ansible-collections/ansible.posix/issues/193). diff --git a/changelogs/fragments/196_boot_opt_for_linux.yml b/changelogs/fragments/196_boot_opt_for_linux.yml deleted file mode 100644 index 62afecf..0000000 --- a/changelogs/fragments/196_boot_opt_for_linux.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -minor_changes: - - mount - Change behavior of ``boot`` option to set ``noauto`` on Linux nodes - (https://github.com/ansible-collections/ansible.posix/issues/28). diff --git a/changelogs/fragments/19_enable_tags.yml b/changelogs/fragments/19_enable_tags.yml deleted file mode 100644 index f5e24ed..0000000 --- a/changelogs/fragments/19_enable_tags.yml +++ /dev/null @@ -1,2 +0,0 @@ -minor_changes: -- Enabled tags in galaxy.yml (https://github.com/ansible-collections/ansible.posix/issues/18). \ No newline at end of file diff --git a/changelogs/fragments/203_boot_opt_for_bsd.yml b/changelogs/fragments/203_boot_opt_for_bsd.yml deleted file mode 100644 index 0fdd50a..0000000 --- a/changelogs/fragments/203_boot_opt_for_bsd.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -minor_changes: - - mount - Change behavior of ``boot`` option to set ``noauto`` on BSD nodes - (https://github.com/ansible-collections/ansible.posix/issues/28). diff --git a/changelogs/fragments/204_csh_shell.yml b/changelogs/fragments/204_csh_shell.yml deleted file mode 100644 index 6d157a8..0000000 --- a/changelogs/fragments/204_csh_shell.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -bugfixes: -- csh - define ``ECHO`` and ``COMMAND_SEP`` (https://github.com/ansible-collections/ansible.posix/issues/204). diff --git a/changelogs/fragments/207-mount_tests.yml b/changelogs/fragments/207-mount_tests.yml deleted file mode 100644 index f5256d6..0000000 --- a/changelogs/fragments/207-mount_tests.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -trivial: - - Make the mount module integration tests more human readable. diff --git a/changelogs/fragments/21-mount-module_util-routing-issue.yml b/changelogs/fragments/21-mount-module_util-routing-issue.yml deleted file mode 100644 index 08563a2..0000000 --- a/changelogs/fragments/21-mount-module_util-routing-issue.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -bugfixes: - - mount - fix issues with ismount module_util pathing for Ansible 2.9 (fixes https://github.com/ansible-collections/ansible.posix/issues/21) diff --git a/changelogs/fragments/213_quote_cmd_args.yml b/changelogs/fragments/213_quote_cmd_args.yml deleted file mode 100644 index e669d41..0000000 --- a/changelogs/fragments/213_quote_cmd_args.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -bugfixes: -- Synchronize module not recognizing remote ssh key (https://github.com/ansible-collections/ansible.posix/issues/24). -- Synchronize not using quotes around arguments like --out-format (https://github.com/ansible-collections/ansible.posix/issues/190). diff --git a/changelogs/fragments/214-add_firewalld_info_module.yml b/changelogs/fragments/214-add_firewalld_info_module.yml deleted file mode 100644 index a1bfccc..0000000 --- a/changelogs/fragments/214-add_firewalld_info_module.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -trivial: - - firewalld_info - add ``firewalld_info`` module to ``ansible.posix`` collection (https://github.com/ansible-collections/ansible.posix/issues/98) diff --git a/changelogs/fragments/215_fix_REJECT_target_name.yml b/changelogs/fragments/215_fix_REJECT_target_name.yml deleted file mode 100644 index 206589f..0000000 --- a/changelogs/fragments/215_fix_REJECT_target_name.yml +++ /dev/null @@ -1,2 +0,0 @@ -bugfixes: - - firewalld - fix setting zone target to ``%%REJECT%%`` (https://github.com/ansible-collections/ansible.posix/pull/215). diff --git a/changelogs/fragments/217-restructure_authrized_key_test.yml b/changelogs/fragments/217-restructure_authrized_key_test.yml deleted file mode 100644 index 0374b95..0000000 --- a/changelogs/fragments/217-restructure_authrized_key_test.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -trivial: -- authorized_key - Split tasks/main.yml in integration tests to each function block. diff --git a/changelogs/fragments/222_synchronize.yml b/changelogs/fragments/222_synchronize.yml deleted file mode 100644 index af84610..0000000 --- a/changelogs/fragments/222_synchronize.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -bugfixes: -- synchronize - use SSH args from SSH connection plugin (https://github.com/ansible-collections/ansible.posix/issues/222). diff --git a/changelogs/fragments/226_sysctl_fix_integration_test.yml b/changelogs/fragments/226_sysctl_fix_integration_test.yml deleted file mode 100644 index 4c2bc2a..0000000 --- a/changelogs/fragments/226_sysctl_fix_integration_test.yml +++ /dev/null @@ -1,2 +0,0 @@ -bugfixes: -- sysctl - modifying conditional check for docker to fix tests being skipped (https://github.com/ansible-collections/ansible.posix/pull/226). diff --git a/changelogs/fragments/229_add_podman_connection_plugin_to_synchronize.yml b/changelogs/fragments/229_add_podman_connection_plugin_to_synchronize.yml deleted file mode 100644 index c6f3030..0000000 --- a/changelogs/fragments/229_add_podman_connection_plugin_to_synchronize.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -bugfixes: - - synchronize - add ``community.podman.podman`` to the list of supported connection plugins (https://github.com/ansible-community/molecule-podman/issues/45). diff --git a/changelogs/fragments/23-selinux-doesnt-create-missing-config-keys.yml b/changelogs/fragments/23-selinux-doesnt-create-missing-config-keys.yml deleted file mode 100644 index cd32784..0000000 --- a/changelogs/fragments/23-selinux-doesnt-create-missing-config-keys.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -bugfixes: - - selinux - add missing configuration keys for /etc/selinux/config (https://github.com/ansible-collections/ansible.posix/issues/23) diff --git a/changelogs/fragments/230_complete_podman_support_for_synchronize.yml b/changelogs/fragments/230_complete_podman_support_for_synchronize.yml deleted file mode 100644 index e9c6c41..0000000 --- a/changelogs/fragments/230_complete_podman_support_for_synchronize.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -bugfixes: - - synchronize - complete podman support for synchronize module. diff --git a/changelogs/fragments/233-fix-wrong-firewalld-version-info.yml b/changelogs/fragments/233-fix-wrong-firewalld-version-info.yml deleted file mode 100644 index f1bf525..0000000 --- a/changelogs/fragments/233-fix-wrong-firewalld-version-info.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -trivial: - - firewalld - fix wrong version number in the module document. diff --git a/changelogs/fragments/241-synchronize-shell-quoting.yml b/changelogs/fragments/241-synchronize-shell-quoting.yml deleted file mode 100644 index 8b6df47..0000000 --- a/changelogs/fragments/241-synchronize-shell-quoting.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -bugfixes: - - synchronize - properly quote rsync CLI parameters (https://github.com/ansible-collections/ansible.posix/pull/241). diff --git a/changelogs/fragments/25_ansible_metadata.yml b/changelogs/fragments/25_ansible_metadata.yml deleted file mode 100644 index c2b0185..0000000 --- a/changelogs/fragments/25_ansible_metadata.yml +++ /dev/null @@ -1,2 +0,0 @@ -minor_changes: -- Removed ANSIBLE_METADATA from all the modules. \ No newline at end of file diff --git a/changelogs/fragments/26_profile_tasks_doc.yml b/changelogs/fragments/26_profile_tasks_doc.yml deleted file mode 100644 index b40d085..0000000 --- a/changelogs/fragments/26_profile_tasks_doc.yml +++ /dev/null @@ -1,2 +0,0 @@ -bugfixes: -- Typecast results before use in profile_tasks callback (https://github.com/ansible/ansible/issues/69563). \ No newline at end of file diff --git a/changelogs/fragments/27_update_examples.yml b/changelogs/fragments/27_update_examples.yml deleted file mode 100644 index 1fcd35e..0000000 --- a/changelogs/fragments/27_update_examples.yml +++ /dev/null @@ -1,2 +0,0 @@ -minor_changes: -- Update EXAMPLES section in modules to use FQCN. \ No newline at end of file diff --git a/changelogs/fragments/33_mount.yml b/changelogs/fragments/33_mount.yml deleted file mode 100644 index 794ba28..0000000 --- a/changelogs/fragments/33_mount.yml +++ /dev/null @@ -1,2 +0,0 @@ -bugfixes: -- Revert "mount - Check if src exists before mounted (ansible/ansible#61752)". \ No newline at end of file diff --git a/changelogs/fragments/35_disable_tests.yml b/changelogs/fragments/35_disable_tests.yml deleted file mode 100644 index ba46c43..0000000 --- a/changelogs/fragments/35_disable_tests.yml +++ /dev/null @@ -1,2 +0,0 @@ -minor_changes: -- Revert "Enable at, patch and synchronize tests (https://github.com/ansible-collections/ansible.posix/pull/5)". \ No newline at end of file diff --git a/changelogs/fragments/37-authorized_keys-inconsistent-check-mode-values.yml b/changelogs/fragments/37-authorized_keys-inconsistent-check-mode-values.yml deleted file mode 100644 index eed6ec6..0000000 --- a/changelogs/fragments/37-authorized_keys-inconsistent-check-mode-values.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -bugfixes: - - authorized_keys - fix inconsistent return value for check mode (https://github.com/ansible-collections/ansible.posix/issues/37) diff --git a/changelogs/fragments/39_remove_license.yml b/changelogs/fragments/39_remove_license.yml deleted file mode 100644 index 89e2ffd..0000000 --- a/changelogs/fragments/39_remove_license.yml +++ /dev/null @@ -1,2 +0,0 @@ -minor_changes: -- Remove license key from galaxy.yml. \ No newline at end of file diff --git a/changelogs/fragments/43_remove_shippable.yml b/changelogs/fragments/43_remove_shippable.yml deleted file mode 100644 index c7e9062..0000000 --- a/changelogs/fragments/43_remove_shippable.yml +++ /dev/null @@ -1,2 +0,0 @@ -minor_changes: -- Remove sanity jobs from shippable (https://github.com/ansible-collections/ansible.posix/pull/43). \ No newline at end of file diff --git a/changelogs/fragments/4_update_readme.yml b/changelogs/fragments/4_update_readme.yml deleted file mode 100644 index d38f4cd..0000000 --- a/changelogs/fragments/4_update_readme.yml +++ /dev/null @@ -1,2 +0,0 @@ -minor_changes: -- Update README.md (https://github.com/ansible-collections/ansible.posix/pull/4/). \ No newline at end of file diff --git a/changelogs/fragments/5_enable_tests.yml b/changelogs/fragments/5_enable_tests.yml deleted file mode 100644 index a5a60dd..0000000 --- a/changelogs/fragments/5_enable_tests.yml +++ /dev/null @@ -1,2 +0,0 @@ -minor_changes: -- Enable tests for at, patch and synchronize modules (https://github.com/ansible-collections/ansible.posix/pull/5). \ No newline at end of file diff --git a/changelogs/fragments/65931-json-callback-non-lockstep-output.yml b/changelogs/fragments/65931-json-callback-non-lockstep-output.yml deleted file mode 100644 index c6854ae..0000000 --- a/changelogs/fragments/65931-json-callback-non-lockstep-output.yml +++ /dev/null @@ -1,4 +0,0 @@ -bugfixes: -- json callback - Fix host result to task references in the resultant JSON - output for non-lockstep strategy plugins such as free - (https://github.com/ansible/ansible/issues/65931) diff --git a/changelogs/fragments/6_test_devel.yml b/changelogs/fragments/6_test_devel.yml deleted file mode 100644 index 30510a2..0000000 --- a/changelogs/fragments/6_test_devel.yml +++ /dev/null @@ -1,2 +0,0 @@ -minor_changes: -- CI should use devel (https://github.com/ansible-collections/ansible.posix/pull/6). \ No newline at end of file diff --git a/changelogs/fragments/74_synchronize_docker.yml b/changelogs/fragments/74_synchronize_docker.yml deleted file mode 100644 index 41ee488..0000000 --- a/changelogs/fragments/74_synchronize_docker.yml +++ /dev/null @@ -1,2 +0,0 @@ -bugfixes: -- Fix synchronize to work with renamed docker and buildah connection plugins. \ No newline at end of file diff --git a/changelogs/fragments/7_env.yml b/changelogs/fragments/7_env.yml deleted file mode 100644 index a8a663e..0000000 --- a/changelogs/fragments/7_env.yml +++ /dev/null @@ -1,2 +0,0 @@ -bugfixes: -- Allow unsetting existing environment vars via environment by specifying a null value (https://github.com/ansible/ansible/pull/68236). \ No newline at end of file diff --git a/changelogs/fragments/82-private-key-override-fix.yml b/changelogs/fragments/82-private-key-override-fix.yml deleted file mode 100644 index 341fe60..0000000 --- a/changelogs/fragments/82-private-key-override-fix.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -bugfixes: - - synchronize - fix for private_key overriding in synchronize module. diff --git a/changelogs/fragments/99-at_add_aix_support.yml b/changelogs/fragments/99-at_add_aix_support.yml deleted file mode 100644 index da92789..0000000 --- a/changelogs/fragments/99-at_add_aix_support.yml +++ /dev/null @@ -1,2 +0,0 @@ -bugfixes: -- at - add AIX support (https://github.com/ansible-collections/ansible.posix/pull/99). diff --git a/changelogs/fragments/firewalld_integ_test.yml b/changelogs/fragments/firewalld_integ_test.yml deleted file mode 100644 index e19ab9c..0000000 --- a/changelogs/fragments/firewalld_integ_test.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -trivial: -- firewalld - fix integration tests for Fedora 34 (https://github.com/ansible-collections/ansible.posix/pull/243). diff --git a/changelogs/fragments/firewalld_migration.yml b/changelogs/fragments/firewalld_migration.yml deleted file mode 100644 index 3d97e2b..0000000 --- a/changelogs/fragments/firewalld_migration.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -minor_changes: - - firewalld - add firewalld module to ansible.posix collection diff --git a/changelogs/fragments/firewalld_test.yml b/changelogs/fragments/firewalld_test.yml deleted file mode 100644 index 4ed6020..0000000 --- a/changelogs/fragments/firewalld_test.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -bugfixes: -- firewalld - enable integration after migration (https://github.com/ansible-collections/ansible.posix/pull/239). diff --git a/changelogs/fragments/firewalld_zone_target.yml b/changelogs/fragments/firewalld_zone_target.yml deleted file mode 100644 index 13597b0..0000000 --- a/changelogs/fragments/firewalld_zone_target.yml +++ /dev/null @@ -1,2 +0,0 @@ -minor_changes: - - firewalld - bring the ``target`` feature back (https://github.com/ansible-collections/ansible.posix/issues/112). diff --git a/changelogs/fragments/initial_commit.yaml b/changelogs/fragments/initial_commit.yaml deleted file mode 100644 index 2ea98b5..0000000 --- a/changelogs/fragments/initial_commit.yaml +++ /dev/null @@ -1,2 +0,0 @@ -major_changes: -- Bootstrap Collection (https://github.com/ansible-collections/ansible.posix/pull/1). \ No newline at end of file diff --git a/changelogs/fragments/misc_fix.yml b/changelogs/fragments/misc_fix.yml deleted file mode 100644 index 66b7eff..0000000 --- a/changelogs/fragments/misc_fix.yml +++ /dev/null @@ -1,2 +0,0 @@ -minor_changes: -- fix sanity test for various modules. diff --git a/changelogs/fragments/sanity_test_ignore_file.yml b/changelogs/fragments/sanity_test_ignore_file.yml deleted file mode 100644 index 8a9df55..0000000 --- a/changelogs/fragments/sanity_test_ignore_file.yml +++ /dev/null @@ -1,2 +0,0 @@ -trivial: -- Add sanity test ignore file for ansible version 2.12 diff --git a/changelogs/fragments/skippy_deprecation.yml b/changelogs/fragments/skippy_deprecation.yml deleted file mode 100644 index 88942a0..0000000 --- a/changelogs/fragments/skippy_deprecation.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -minor_changes: - - skippy - fixed the deprecation warning (by date) for skippy callback plugin diff --git a/changelogs/fragments/synchronize.yml b/changelogs/fragments/synchronize.yml deleted file mode 100644 index 29c5a2b..0000000 --- a/changelogs/fragments/synchronize.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -minor_changes: -- synchronize - fix typo (https://github.com/ansible-collections/ansible.posix/pull/198). diff --git a/changelogs/fragments/test_matrix.yml b/changelogs/fragments/test_matrix.yml deleted file mode 100644 index 0c41cdc..0000000 --- a/changelogs/fragments/test_matrix.yml +++ /dev/null @@ -1,2 +0,0 @@ -minor_changes: -- added 2.11 branch to test matrix, added ignore-2.12.txt. diff --git a/docs/ansible.posix.acl_module.rst b/docs/ansible.posix.acl_module.rst index 2b47f98..aab5a37 100644 --- a/docs/ansible.posix.acl_module.rst +++ b/docs/ansible.posix.acl_module.rst @@ -59,7 +59,7 @@ Parameters entity
- - + string
@@ -74,7 +74,7 @@ Parameters entry
- - + string
@@ -94,7 +94,7 @@ Parameters etype
- - + string
@@ -151,13 +151,14 @@ Parameters permissions
- - + string
-
The permissions to apply/remove can be any combination of r, w, x (read, write and execute respectively), and X (execute permission if the file is a directory or already has execute permission for some user)
+
The permissions to apply/remove can be any combination of r, w, x
+
(read, write and execute respectively), and X (execute permission if the file is a directory or already has execute permission for some user)
@@ -166,7 +167,7 @@ Parameters recalculate_mask
- - + string
@@ -200,6 +201,8 @@ Parameters
Recursively sets the specified ACL.
Incompatible with state=query.
+
Alias recurse added in version 1.3.0.
+

aliases: recurse
@@ -208,7 +211,7 @@ Parameters state
- - + string
@@ -259,7 +262,7 @@ Notes Examples -------- -.. code-block:: yaml+jinja +.. code-block:: yaml - name: Grant user Joe read access to a file ansible.posix.acl: diff --git a/docs/ansible.posix.at_module.rst b/docs/ansible.posix.at_module.rst index 3d2b41f..d9f3cc8 100644 --- a/docs/ansible.posix.at_module.rst +++ b/docs/ansible.posix.at_module.rst @@ -62,7 +62,6 @@ Parameters
integer - / required
@@ -131,7 +130,6 @@ Parameters
string - / required
@@ -155,7 +153,7 @@ Parameters Examples -------- -.. code-block:: yaml+jinja +.. code-block:: yaml - name: Schedule a command to execute in 20 minutes as root ansible.posix.at: diff --git a/docs/ansible.posix.authorized_key_module.rst b/docs/ansible.posix.authorized_key_module.rst index ceef3ef..69e80e3 100644 --- a/docs/ansible.posix.authorized_key_module.rst +++ b/docs/ansible.posix.authorized_key_module.rst @@ -113,7 +113,7 @@ Parameters key_options
- - + string
@@ -226,7 +226,7 @@ Parameters Examples -------- -.. code-block:: yaml+jinja +.. code-block:: yaml - name: Set authorized key taken from file ansible.posix.authorized_key: diff --git a/docs/ansible.posix.firewalld_info_module.rst b/docs/ansible.posix.firewalld_info_module.rst new file mode 100644 index 0000000..8bb6508 --- /dev/null +++ b/docs/ansible.posix.firewalld_info_module.rst @@ -0,0 +1,520 @@ +.. _ansible.posix.firewalld_info_module: + + +**************************** +ansible.posix.firewalld_info +**************************** + +**Gather information about firewalld** + + + +.. contents:: + :local: + :depth: 1 + + +Synopsis +-------- +- This module gathers information about firewalld rules. + + + +Requirements +------------ +The below requirements are needed on the host that executes this module. + +- firewalld >= 0.2.11 +- python-firewall +- python-dbus + + +Parameters +---------- + +.. raw:: html + + + + + + + + + + + + + + + + + +
ParameterChoices/DefaultsComments
+
+ active_zones + +
+ boolean +
+
+
    Choices: +
  • no ←
  • +
  • yes
  • +
+
+
Gather information about active zones.
+
+
+ zones + +
+ list + / elements=string +
+
+ +
Gather information about specific zones.
+
If only works if active_zones is set to false.
+
+
+ + + + +Examples +-------- + +.. code-block:: yaml + + - name: Gather information about active zones + ansible.posix.firewalld_info: + active_zones: yes + + - name: Gather information about specific zones + ansible.posix.firewalld_info: + zones: + - public + - external + - internal + + + +Return Values +------------- +Common return values are documented `here `_, the following are the fields unique to this module: + +.. raw:: html + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
KeyReturnedDescription
+
+ active_zones + +
+ boolean +
+
success +
Gather active zones only if turn it true.
+
+
+
+ collected_zones + +
+ list +
+
success +
A list of collected zones.
+
+
Sample:
+
['external', 'internal']
+
+
+ firewalld_info + +
+ complex +
+
success +
Returns various information about firewalld configuration.
+
+
  +
+ default_zones + +
+ string +
+
success +
The zone name of default zone.
+
+
Sample:
+
public
+
  +
+ version + +
+ string +
+
success +
The version information of firewalld.
+
+
Sample:
+
0.8.2
+
  +
+ zones + +
+ complex +
+
success +
A dict of zones to gather information.
+
+
   +
+ zone + +
+ complex +
+
success +
The zone name registered in firewalld.
+
+
Sample:
+
external
+
    +
+ forward + +
+ boolean +
+
success +
The network interface forwarding.
+
This parameter supports on python-firewall 0.9.0(or later) and is not collected in earlier versions.
+
+
    +
+ forward_ports + +
+ list +
+
success +
A list of forwarding port pair with protocol.
+
+
Sample:
+
['icmp', 'ipv6-icmp']
+
    +
+ icmp_block_inversion + +
+ boolean +
+
success +
The ICMP block inversion to block all ICMP requests.
+
+
    +
+ icmp_blocks + +
+ list +
+
success +
A list of blocking icmp protocol.
+
+
Sample:
+
['echo-request']
+
    +
+ interfaces + +
+ list +
+
success +
A list of network interfaces.
+
+
Sample:
+
['eth0', 'eth1']
+
    +
+ masquerade + +
+ boolean +
+
success +
The network interface masquerading.
+
+
    +
+ ports + +
+ list +
+
success +
A list of network port with protocol.
+
+
Sample:
+
[['22', 'tcp'], ['80', 'tcp']]
+
    +
+ protocols + +
+ list +
+
success +
A list of network protocol.
+
+
Sample:
+
['icmp', 'ipv6-icmp']
+
    +
+ rich_rules + +
+ list +
+
success +
A list of rich language rule.
+
+
Sample:
+
['rule protocol value="icmp" reject', 'rule priority="32767" reject']
+
    +
+ services + +
+ list +
+
success +
A list of network services.
+
+
Sample:
+
['dhcp', 'dns', 'ssh']
+
    +
+ source_ports + +
+ list +
+
success +
A list of network source port with protocol.
+
+
Sample:
+
[['30000', 'tcp'], ['30001', 'tcp']]
+
    +
+ sources + +
+ list +
+
success +
A list of source network address.
+
+
Sample:
+
['172.16.30.0/24', '172.16.31.0/24']
+
    +
+ target + +
+ string +
+
success +
A list of services in the zone.
+
+
Sample:
+
ACCEPT
+
+
+ undefined_zones + +
+ list +
+
success +
A list of undefined zones in zones option.
+
undefined_zones will be ignored for gathering process.
+
+
Sample:
+
['foo', 'bar']
+
+

+ + +Status +------ + + +Authors +~~~~~~~ + +- Hideki Saito (@saito-hideki) diff --git a/docs/ansible.posix.firewalld_module.rst b/docs/ansible.posix.firewalld_module.rst index 4a750ad..a041534 100644 --- a/docs/ansible.posix.firewalld_module.rst +++ b/docs/ansible.posix.firewalld_module.rst @@ -34,12 +34,12 @@ Parameters - + - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - + + + + + - @@ -235,7 +238,7 @@ Notes Examples -------- -.. code-block:: yaml+jinja +.. code-block:: yaml # Before 2.3, option 'name' was used instead of 'path' - name: Mount DVD read-only @@ -296,6 +299,15 @@ Examples state: mounted fstype: nfs + - name: Mount NFS volumes with noauto according to boot option + ansible.posix.mount: + src: 192.168.1.100:/nfs/ssd/shared_data + path: /mnt/shared_data + opts: rw,sync,hard,intr + boot: no + state: mounted + fstype: nfs + diff --git a/docs/ansible.posix.patch_module.rst b/docs/ansible.posix.patch_module.rst index 95d8e2e..60c30cf 100644 --- a/docs/ansible.posix.patch_module.rst +++ b/docs/ansible.posix.patch_module.rst @@ -212,7 +212,7 @@ Notes Examples -------- -.. code-block:: yaml+jinja +.. code-block:: yaml - name: Apply patch to one file ansible.posix.patch: diff --git a/docs/ansible.posix.seboolean_module.rst b/docs/ansible.posix.seboolean_module.rst index 31ab10e..b089b14 100644 --- a/docs/ansible.posix.seboolean_module.rst +++ b/docs/ansible.posix.seboolean_module.rst @@ -65,7 +65,7 @@ Parameters name
- - + string / required
@@ -129,7 +129,7 @@ Notes Examples -------- -.. code-block:: yaml+jinja +.. code-block:: yaml - name: Set httpd_can_network_connect flag on and keep it persistent across reboots ansible.posix.seboolean: diff --git a/docs/ansible.posix.selinux_module.rst b/docs/ansible.posix.selinux_module.rst index aec26e9..b7f7976 100644 --- a/docs/ansible.posix.selinux_module.rst +++ b/docs/ansible.posix.selinux_module.rst @@ -47,7 +47,7 @@ Parameters configfile
- - + string
@@ -79,7 +79,7 @@ Parameters state
- - + string / required
@@ -103,7 +103,7 @@ Parameters Examples -------- -.. code-block:: yaml+jinja +.. code-block:: yaml - name: Enable SELinux ansible.posix.selinux: diff --git a/docs/ansible.posix.synchronize_module.rst b/docs/ansible.posix.synchronize_module.rst index efd892b..82458df 100644 --- a/docs/ansible.posix.synchronize_module.rst +++ b/docs/ansible.posix.synchronize_module.rst @@ -113,6 +113,26 @@ Parameters
Copy symlinks as the item that they point to (the referent) is copied, rather than the symlink.
+ + + + + @@ -165,7 +185,7 @@ Parameters @@ -233,6 +253,7 @@ Parameters
list + / elements=string
+ + + + + @@ -542,7 +586,7 @@ Notes - Inspect the verbose output to validate the destination user/host/path are what was expected. - To exclude files and directories from being synchronized, you may add ``.rsync-filter`` files to the source directory. - rsync daemon must be up and running with correct permission when using rsync protocol in source or destination path. - - The ``synchronize`` module forces `--delay-updates` to avoid leaving a destination in a broken in-between state if the underlying rsync process encounters an error. Those synchronizing large numbers of files that are willing to trade safety for performance should call rsync directly. + - The ``synchronize`` module enables `--delay-updates` by default to avoid leaving a destination in a broken in-between state if the underlying rsync process encounters an error. Those synchronizing large numbers of files that are willing to trade safety for performance should disable this option. - link_destination is subject to the same limitations as the underlying rsync daemon. Hard links are only preserved if the relative subtrees of the source and destination are the same. Attempts to hardlink into a directory that is a subdirectory of the source will be prevented. @@ -560,7 +604,7 @@ See Also Examples -------- -.. code-block:: yaml+jinja +.. code-block:: yaml - name: Synchronization of src on the control machine to dest on the remote hosts ansible.posix.synchronize: @@ -678,7 +722,7 @@ Examples # Specify the rsync binary to use on remote host and on local host - hosts: groupofhosts vars: - ansible_rsync_path: /usr/gnu/bin/rsync + ansible_rsync_path: /usr/gnu/bin/rsync tasks: - name: copy /tmp/localpath/ to remote location /tmp/remotepath diff --git a/docs/ansible.posix.sysctl_module.rst b/docs/ansible.posix.sysctl_module.rst index 1d7b34b..1f49cf6 100644 --- a/docs/ansible.posix.sysctl_module.rst +++ b/docs/ansible.posix.sysctl_module.rst @@ -58,14 +58,14 @@ Parameters name
- - + string / required
@@ -94,7 +94,7 @@ Parameters state
- - + string
ParameterParameter Choices/Defaults Comments
+
icmp_block @@ -54,7 +54,7 @@ Parameters
+
icmp_block_inversion @@ -69,7 +69,7 @@ Parameters
+
immediate @@ -88,7 +88,7 @@ Parameters
+
interface @@ -103,7 +103,7 @@ Parameters
+
masquerade @@ -118,7 +118,7 @@ Parameters
+
offline @@ -137,7 +137,7 @@ Parameters
+
permanent @@ -153,12 +153,12 @@ Parameters
Should this configuration be in the running firewalld configuration or persist across reboots.
-
As of Ansible 2.3, permanent operations can operate on firewalld configs when it is not running (requires firewalld >= 3.0.9).
+
As of Ansible 2.3, permanent operations can operate on firewalld configs when it is not running (requires firewalld >= 0.3.9).
Note that if this is no, immediate is assumed yes.
+
port @@ -174,12 +174,13 @@ Parameters
+
port_forward
- string + list + / elements=dictionary
@@ -188,8 +189,80 @@ Parameters
Port and protocol to forward using firewalld.
+
+ port + +
+ string + / required +
+
+ +
Source port to forward from
+
+
+ proto + +
+ string + / required +
+
+
    Choices: +
  • udp
  • +
  • tcp
  • +
+
+
protocol to forward
+
+
+ toaddr + +
+ string +
+
+ +
Optional address to forward to
+
+
+ toport + +
+ string + / required +
+
+ +
destination port
+
rich_rule @@ -205,7 +278,7 @@ Parameters
+
service @@ -221,7 +294,7 @@ Parameters
+
source @@ -236,7 +309,7 @@ Parameters
+
state @@ -260,7 +333,30 @@ Parameters
+ +
+ target + +
+ string +
+
added in 1.2.0
+
+
    Choices: +
  • default
  • +
  • ACCEPT
  • +
  • DROP
  • +
  • %%REJECT%%
  • +
+
+
firewalld Zone target
+
If state is set to absent, this will reset the target to default
+
timeout @@ -272,11 +368,11 @@ Parameters Default:
0
-
The amount of time the rule should be in effect for when non-permanent.
+
The amount of time in seconds the rule should be in effect for when non-permanent.
+
zone @@ -311,7 +407,7 @@ Notes Examples -------- -.. code-block:: yaml+jinja +.. code-block:: yaml - name: permit traffic in default zone for https service ansible.posix.firewalld: @@ -375,13 +471,15 @@ Examples permanent: yes icmp_block: echo-request - - name: Redirect port 443 to 8443 - become: yes + - ansible.posix.firewalld: + zone: internal + state: present + permanent: yes + target: ACCEPT + + - name: Redirect port 443 to 8443 with Rich Rule ansible.posix.firewalld: - port_forward: - - port: 443 - proto: tcp - toport: 8443 + rich_rule: rule family=ipv4 forward-port port=443 protocol=tcp to-port=8443 zone: public permanent: yes immediate: yes @@ -389,6 +487,7 @@ Examples + Status ------ diff --git a/docs/ansible.posix.mount_module.rst b/docs/ansible.posix.mount_module.rst index d7b7535..d955f7b 100644 --- a/docs/ansible.posix.mount_module.rst +++ b/docs/ansible.posix.mount_module.rst @@ -69,7 +69,10 @@ Parameters
Determines if the filesystem should be mounted on boot.
-
Only applies to Solaris systems.
+
Only applies to Solaris and Linux systems.
+
For Solaris systems, true will set yes as the value of mount at boot in /etc/vfstab.
+
For Linux, FreeBSD, NetBSD and OpenBSD systems, false will add noauto to mount options in /etc/fstab.
+
To avoid mount option conflicts, if noauto specified in opts, mount module will ignore boot.
@@ -64,13 +64,13 @@ Parameters policy
- - + string
-
The name of the SELinux policy to use (e.g. targeted) will be required if state is not disabled.
+
The name of the SELinux policy to use (e.g. targeted) will be required if state is not disabled.
+
+ delay_updates + +
+ boolean +
+
added in 1.3.0
+
+
    Choices: +
  • no
  • +
  • yes ←
  • +
+
+
This option puts the temporary file from each updated file into a holding directory until the end of the transfer, at which time all the files are renamed into place in rapid succession.
+
@@ -129,9 +149,9 @@ Parameters
-
Delete files in dest that don't exist (after transfer, not before) in the src path.
-
This option requires recursive=yes.
-
This option ignores excluded files and behaves like the rsync opt --delete-excluded.
+
Delete files in dest that do not exist (after transfer, not before) in the src path.
+
This option requires recursive=yes.
+
This option ignores excluded files and behaves like the rsync opt --delete-after.
Port number for ssh on the destination host.
Prior to Ansible 2.0, the ansible_ssh_port inventory var took precedence over this value.
-
This parameter defaults to the value of ansible_ssh_port or ansible_port, the remote_port config setting or the value from ssh client configuration if none of the former have been set.
+
This parameter defaults to the value of ansible_port, the remote_port config setting or the value from ssh client configuration if none of the former have been set.
@@ -384,6 +405,7 @@ Parameters
list + / elements=string
@@ -463,6 +485,27 @@ Parameters
The path can be absolute or relative.
+
+ ssh_connection_multiplexing + +
+ boolean +
+
+
    Choices: +
  • no ←
  • +
  • yes
  • +
+
+
SSH connection multiplexing for rsync is disabled by default to prevent misconfigured ControlSockets from resulting in failed SSH connections. This is accomplished by setting the SSH ControlSocket to none.
+
Set this option to yes to allow multiplexing and reduce SSH connection overhead.
+
Note that simply setting this option to yes is not enough; You must also configure SSH connection multiplexing in your SSH client config by setting values for ControlMaster, ControlPersist and ControlPath.
+
@@ -499,7 +542,8 @@ Parameters
-
Use the ssh_args specified in ansible.cfg.
+
In Ansible 2.10 and lower, it uses the ssh_args specified in ansible.cfg.
+
In Ansible 2.11 and onwards, when set to true, it uses all SSH connection configurations like ansible_ssh_args, ansible_ssh_common_args, and ansible_ssh_extra_args.
-
The dot-separated path (aka key) specifying the sysctl variable.
+
The dot-separated path (also known as key) specifying the sysctl variable.

aliases: key
@@ -113,7 +113,7 @@ Parameters sysctl_file
- - + path
@@ -148,7 +148,7 @@ Parameters value
- - + string
@@ -167,7 +167,7 @@ Parameters Examples -------- -.. code-block:: yaml+jinja +.. code-block:: yaml # Set vm.swappiness to 5 in /etc/sysctl.conf - ansible.posix.sysctl: @@ -212,4 +212,4 @@ Status Authors ~~~~~~~ -- David CHANIAL (@davixx) +- David CHANIAL (@davixx) diff --git a/galaxy.yml b/galaxy.yml index da182e8..f472532 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -1,6 +1,6 @@ namespace: ansible name: posix -version: 1.2.0 +version: 1.3.0 readme: README.md authors: - Ansible (github.com/ansible)