feat(pb,role): adds alpine as an option for VM deploying

This commit is contained in:
2026-09-14 14:47:28 +04:00
parent 6bef8b28e5
commit e59f07fb6d
3 changed files with 46 additions and 3 deletions
@@ -8,6 +8,18 @@
- sudo
update-cache: true
- name: Ensure /etc/resolv.conf exists with DNS servers
when: (ansible_facts['distribution'] == "Alpine")
ansible.builtin.copy:
dest: /etc/resolv.conf
content: |
nameserver 192.168.0.1
nameserver 8.8.8.8
mode: '0644'
owner: root
group: root
become: true
# The same commands for Alpine
- name: Update and install packages on Alpine
when: (ansible_facts['distribution'] == "Alpine")
@@ -10,7 +10,7 @@
api_token_id: ansible
api_token_secret: "{{ proxmox_token_secret }}"
clone: debian-13-cloud-init-template
clone: "{{ vm_os_template }}-cloud-init-template"
name: "{{ vm_hostname }}"
storage: main
format: qcow2