Luca MarsellaandGitHub 4daa61d294 synchronize: fix changed status with link_dest (#812)
* synchronize: fix changed status with link_dest

With link_dest the module runs rsync with -vv, which also itemizes
unchanged files as '.f' followed by spaces. Any such line made the
module report no change, even when other files in the same run were
transferred, deleted or had their permissions updated.

Treat a line as unchanged only when it starts with a period and has no
attribute changes, which is how rsync lists files it did not touch.

Signed-off-by: Luca Marsella <marsluca7@gmail.com>
Assisted-by: Claude Opus 5.5

* synchronize: don't make link_dest test files world-readable

SonarCloud flags the new test tasks for granting access to others.
The test does not need it, so use 0750 and 0640 instead.

Signed-off-by: Luca Marsella <marsluca7@gmail.com>

* synchronize: read rsync markers only at the start of a line

The link_dest check split the whole output on the marker, so a file
name that contains the marker made a no-op sync report a change.

Signed-off-by: Luca Marsella <marsluca7@gmail.com>

---------

Signed-off-by: Luca Marsella <marsluca7@gmail.com>
2026-11-16 16:16:54 +09:00
2026-11-10 15:14:07 +09:00
2025-08-05 14:30:30 +09:00
2024-12-04 09:46:44 +09:00
2020-03-09 13:15:28 +00:00
2026-11-10 15:14:07 +09:00

ansible.posix

Build Status Codecov

Communication

Description

An Ansible Collection of modules and plugins that target POSIX UNIX/Linux and derivative Operating Systems.

Requirements

  • Python:
    • The Python interpreter version must meet Ansible Core's requirements.
  • Ansible Core:
    • ansible-core 2.16 or later

Installation

Before using this collection, you need to install it with the Ansible Galaxy command-line tool:

ansible-galaxy collection install ansible.posix

You can also include it in a requirements.yml file and install it with ansible-galaxy collection install -r requirements.yml, using the format:

collections:
  - name: ansible.posix

Note that if you install any collections from Ansible Galaxy, they will not be upgraded automatically when you upgrade the Ansible package. To upgrade the collection to the latest available version, run the following command:

ansible-galaxy collection install ansible.posix --upgrade

You can also install a specific version of the collection, for example, if you need to downgrade when something is broken in the latest version (please report an issue in this repository). Use the following syntax to install version 2.0.0:

ansible-galaxy collection install ansible.posix:==2.0.0

See using Ansible collections for more details.

For more information about communication, see the Ansible communication guide.

Use Cases

You can see the general use-cases as an example by ansible-doc command like below.

For example, ansible.posix.firewalld module:

ansible-doc ansible.posix.firewalld

Also, if you want to confirm the plugins descriptions, you can follow the following option with ansible-doc command:

For example, ansible.posix.profile_tasks callback plugin:

ansible-doc -t callback ansible.posix.profile_tasks

Testing

The following ansible-core versions have been tested with this collection:

  • ansible-core 2.23 (devel)
  • ansible-core 2.22 (stable)
  • ansible-core 2.21 (stable)
  • ansible-core 2.20 (stable)
  • ansible-core 2.19 (stable)
  • ansible-core 2.18 (LTS)
  • ansible-core 2.17 (EoL)
  • ansible-core 2.16 (EoL)

For most up to date support info, see the ansible-core support matrix

Contributing

We welcome community contributions to this collection. For more details, see Contributing to Ansible-maintained collections for complete details.

Support

  • Community users can find help through the Communication section.
  • Red Hat Ansible Automation Platform subscribers can request support through Automation Hub by using the "Create issue" button on the collection page.

Release Notes and Roadmap

See changelog for more details.

This document was written using the following template.

The README has been carefully prepared to cover the community template, but if you find any problems, please file a documentation issue.

License Information

GNU General Public License v3.0 or later.

See COPYING to see the full text.

S
Description
Ansible Collection for Posix
Readme
3.4 MiB
Languages
Python 96.3%
Shell 3.7%