![]() ![]() Unarchive could do it as a Single task as it can optionally copy the file from control machine to target remote server and uncompress it there. Let us suppose that you have a playbook with two tasks as follows refer the below postĪnsible Archive Examples - Zip files and Directories If you would like to know how to create archive with ansible. So I guess this gives you a clear understanding of how Ansible unarchive module does the job in the background.īefore going to ansible unarchive. If this arg is not supported, it will always unpack the archive. It Uses gtar’s -diff arg to calculate if changed or not.This module requires zipinfo and gtar/ unzip command on the target remote host.Some Quick notes before we see an example of this module Since most of the *nix distributions are having these tools built-in. So the target server must have these commands installed. this module uses the basic unzip and tar -xvf command-line tools to perform the operation. Though the unarchive module is part of Ansible. Ansible unarchive module can optionally copy the files to the remote server before uncompressing them. What is Ansible Unarchive Module and How does it workĪnsible Unarchive module helps to unpack or uncompress the files from an archive file such as tar, tar.gz, zip. What is this remote_src in ansible unarchive module.Download a Zip file from remote URL and decompress using unarchive.Playbook with unArchive - A Difference factor.Playbook without Unarchive - A usual approach. ![]() What is Ansible Unarchive Module and How does it work.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |