ansible-role-network/tasks/main.yml
2021-08-24 19:53:34 +02:00

27 lines
508 B
YAML

---
- name: copy interfaces config
ansible.builtin.template:
src: interfaces.j2
dest: /etc/network/interfaces
owner: root
group: root
mode: 0644
tags: common
- name: copy hosts file
ansible.builtin.template:
src: hosts.j2
dest: /etc/hosts
owner: root
group: root
mode: 0644
tags: common
- name: copy resolv.conf file
ansible.builtin.template:
src: resolv.conf.j2
dest: /etc/resolv.conf
owner: root
group: root
mode: 0644
tags: common