38 lines
917 B
YAML
38 lines
917 B
YAML
- name: "Install unzip"
|
|
ansible.builtin.package:
|
|
name: unzip
|
|
state: latest
|
|
tags:
|
|
- clonezilla
|
|
- install_unzip
|
|
|
|
- name: "Create clonezilla directory '{{ clonezilla_download_dir }}'"
|
|
ansible.builtin.file:
|
|
dest: "{{ clonezilla_download_dir }}"
|
|
owner: root
|
|
group: root
|
|
mode: '0755'
|
|
state: directory
|
|
recurse: true
|
|
tags:
|
|
- clonezilla
|
|
- clonezilla_dir_create
|
|
|
|
- name: "Download clonezilla '{{ clonezilla_version }}'"
|
|
ansible.builtin.get_url:
|
|
url: "{{ clonezilla_download_url }}"
|
|
dest: "{{ clonezilla_download_dir }}"
|
|
mode: '0644'
|
|
tags:
|
|
- clonezilla
|
|
- clonezilla_download
|
|
|
|
- name: "Unzip clonezilla to '{{ clonezilla_download_dir }}'"
|
|
ansible.builtin.shell:
|
|
chdir: "{{ clonezilla_download_dir }}"
|
|
cmd: unzip "{{ clonezilla_download_dir + '/' + clonezilla_archive }}"
|
|
check_mode: false
|
|
tags:
|
|
- clonezilla
|
|
- clonezilla_unzip
|