ansible-role-network/tasks/main.yml

28 lines
508 B
YAML
Raw Permalink Normal View History

2021-08-24 17:40:28 +00:00
---
- 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