feat(pb,role): adds alpine as an option for VM deploying
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user