chore(deps): rebuild
This commit is contained in:
@ -3,39 +3,39 @@
|
||||
become: yes
|
||||
|
||||
tasks:
|
||||
# - name: Delete existing template
|
||||
# community.general.proxmox_kvm:
|
||||
# api_host: "{{ api_host }}"
|
||||
# api_user: "{{ api_user }}"
|
||||
# api_password: "{{ api_password }}"
|
||||
# node: "{{ node_target }}"
|
||||
# name: "debian-12-generic-amd64"
|
||||
# state: absent
|
||||
- name: Delete existing template
|
||||
community.general.proxmox_kvm:
|
||||
api_host: "{{ api_host }}"
|
||||
api_user: "{{ api_user }}"
|
||||
api_password: "{{ api_password }}"
|
||||
node: "{{ node_target }}"
|
||||
name: "debian-12-generic-amd64"
|
||||
state: absent
|
||||
|
||||
# - name: Download cloud-init image
|
||||
# register: image
|
||||
# ansible.builtin.get_url:
|
||||
# url: "https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-generic-amd64.qcow2"
|
||||
# dest: /tmp
|
||||
# mode: '0644'
|
||||
# force: true
|
||||
- name: Download cloud-init image
|
||||
register: image
|
||||
ansible.builtin.get_url:
|
||||
url: "https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-generic-amd64.qcow2"
|
||||
dest: /tmp
|
||||
mode: '0644'
|
||||
force: true
|
||||
|
||||
# - name: Install Tools
|
||||
# ansible.builtin.apt:
|
||||
# name:
|
||||
# - libguestfs-tools
|
||||
# - python3
|
||||
# - python3-pip
|
||||
# - python3-proxmoxer
|
||||
# update_cache: true
|
||||
# install_recommends: false
|
||||
# state: present
|
||||
- name: Install Tools
|
||||
ansible.builtin.apt:
|
||||
name:
|
||||
- libguestfs-tools
|
||||
- python3
|
||||
- python3-pip
|
||||
- python3-proxmoxer
|
||||
update_cache: true
|
||||
install_recommends: false
|
||||
state: present
|
||||
|
||||
# - name: Install Tools to cloud-init image
|
||||
# ansible.builtin.shell: |
|
||||
# virt-customize -a {{ image.dest }} --install qemu-guest-agent
|
||||
# virt-customize -a {{ image.dest }} --install vim
|
||||
# virt-customize -a {{ image.dest }} --install git
|
||||
- name: Install Tools to cloud-init image
|
||||
ansible.builtin.shell: |
|
||||
virt-customize -a {{ image.dest }} --install qemu-guest-agent
|
||||
virt-customize -a {{ image.dest }} --install vim
|
||||
virt-customize -a {{ image.dest }} --install git
|
||||
|
||||
- name: Create new VM template from cloud-init image
|
||||
community.general.proxmox_kvm:
|
||||
|
Reference in New Issue
Block a user