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"
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"
In the future there might be an
uncompress
module, but today no:https://github.com/ansible/ansible-modules-core/issues/3241#issuecomment-240991265