feat: add dns management for alpine and debian
This commit is contained in:
parent
63d9880750
commit
0ba18a512f
4 changed files with 27 additions and 1 deletions
11
tasks/dns.yaml
Normal file
11
tasks/dns.yaml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
---
|
||||
|
||||
# manage resolve.conf
|
||||
- name: "configure resolv.conf"
|
||||
ansible.builtin.template:
|
||||
src: "dns/resolv.conf.j2"
|
||||
dest: "/etc/resolv.conf"
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0644"
|
||||
when: ansible_facts['distribution'] in ['Alpine', 'Debian']
|
||||
Loading…
Add table
Add a link
Reference in a new issue