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")