kubernetes.adm.download role
Note
This role is part of the kubernetes.adm collection (version 1.0.0).
To install it use: ansible-galaxy collection install kubernetes.adm
.
To use it in a playbook, specify: kubernetes.adm.download
.
Entry point download_binary
– Download and install a binary file
Synopsis
Parameters
Parameter |
Comments |
---|---|
The final name for the binary file. |
|
The directory to store binary files. Default: |
|
The binary version. |
|
The shell completion command. The expression {{ ansible_user_shell | basename }} can be used to determine the user’s shell. |
|
When true no unarchiving is done, and the file is downloaded to Choices:
|
|
The path to store files when |
Entry point download_file
– Download file
Synopsis
Download file from the URL
download_url
.When
download_unarchive
is true, the downloaded file will be unarchived.
Parameters
Parameter |
Comments |
---|---|
The checksum algorithm. |
|
The URL to a file containg the digest. Mutually exclusive with See |
|
The suffix that will be appended to Mutually exclusive with |
|
Set to true when checksum file contains only the digest. Work around for https://github.com/ansible/ansible/issues/54390. Choices:
|
|
Disable checksum verification. Choices:
|
|
When true, the checksum file will be downloaded along side the downloaded file. Choices:
|
|
The download destination. |
|
The file inside the archive that will be copied to Required when |
|
Whether the downloaded file will be unarchived. True when Choices:
|
|
The file URL. |
|
The file mode. Default: |
Entry point gh_binary
– Download and install a binary file from Github
Synopsis
Download a file from the release page in a Github project.
Using the same URL structure used by Github, the
github_base_url
can point to a private location.All checksum related variables in
download_file
are available.
Parameters
Parameter |
Comments |
---|---|
The binary version. Unlike the |
|
The shell completion command. The expression {{ ansible_user_shell | basename }} can be used to determine the user shell. |
|
When true no unarchiving is done, and the file is downloaded to Choices:
|
|
When false, store files under {{ download_only_path ~ ‘/’ ~ github_project ~ ‘/releases/download/’ ~ release_version }} Mimics the Github URL for the file. When true, store files under Choices:
|
|
The path to store files when |
|
The base download URL. Default: |
|
The orginization/project names. |
|
The file to download. |
|
The release version. |