init
This commit is contained in:
18
ansible/roles/proxmox/vm/download_iso/tasks/main.yml
Normal file
18
ansible/roles/proxmox/vm/download_iso/tasks/main.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
- name: Ensure ISO directory exists
|
||||
ansible.builtin.file:
|
||||
path: /var/lib/vz/template/iso
|
||||
state: directory
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0755"
|
||||
|
||||
- name: Download Debian netinst ISO
|
||||
ansible.builtin.get_url:
|
||||
url: "{{ vm_iso_url }}"
|
||||
dest: "/var/lib/vz/template/iso/{{ vm_iso_name }}"
|
||||
mode: "0644"
|
||||
owner: root
|
||||
group: root
|
||||
force: false # не перекачивать, если файл уже есть
|
||||
timeout: 60
|
||||
Reference in New Issue
Block a user