问题原文
原帖链接 · Kit Sunde · CC BY-SA 3.0
Is there a nicer way of doing zcat in ansible than invoking shell?
- name: "Unpack the local config"
shell: "zcat /proc/config.gz > /usr/src/linux/.config"
args:
creates: "/usr/src/linux/.config"
已采纳解答
原帖链接 · Kit Sunde · CC BY-SA 3.0
In the future there might be an uncompress module, but today no:
https://github.com/ansible/ansible-modules-core/issues/3241#issuecomment-240991265
The unarchive module only supports archives, not compressed files. The documentation was improved to make that more clear. We anticipate a new pure-python uncompress module that will support compressed files as well as archives, which would then deprecate the unarchive module.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
