New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
community.general.archive requires lzma module when format != xz when a dest file exists #5391
Comments
Files identified in the description: If these files are incorrect, please update the |
This requirement is mentioned in the documenation (https://docs.ansible.com/ansible/latest/collections/community/general/archive_module.html#notes), although not where it should be (under requirements). |
I created #5392 to update the documentation. |
@felixfontein the requirement says lzma is required if using xz format. In my scenario I don't use xz format. |
Oh, sorry, I missed that part apparently. The reason for that is https://github.com/ansible-collections/community.general/blob/main/plugins/modules/files/archive.py#L588. |
#5393 will fix that. |
Summary
As in summary. It used to work in ansible 2.10
Issue Type
Bug Report
Component Name
archive
Ansible Version
Community.general Version
Configuration
$ ansible-config dump --only-changed
OS / Environment
Rocky 8 on controller node
CentOS 7 on target node
Steps to Reproduce
Expected Results
65f128b924c5 | CHANGED => {
"ansible_facts": {
"discovered_interpreter_python": "/usr/bin/python"
},
"archived": [],
"arcroot": "/tmp/",
"changed": true,
"dest": "/tmp/bar",
"expanded_exclude_paths": [],
"expanded_paths": [
"/tmp/foo"
],
"gid": 0,
"group": "root",
"missing": [],
"mode": "0644",
"owner": "root",
"size": 54,
"state": "file",
"uid": 0
}
Actual Results
Code of Conduct
The text was updated successfully, but these errors were encountered: