create network role and include it into base (only openbsd does something)
This commit is contained in:
parent
ba0c70532f
commit
dd19c94511
9 changed files with 101 additions and 0 deletions
12
roles/network/tasks/main.yml
Normal file
12
roles/network/tasks/main.yml
Normal file
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
- name: include os spcific tasks
|
||||
include_tasks: "{{ ansible_os_family }}.yml"
|
||||
|
||||
- name: create resolv.conf
|
||||
template:
|
||||
src: resolv.conf.j2
|
||||
dest: /etc/resolv.conf
|
||||
mode: 0644
|
||||
owner: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
when: network_dns_servers is defined
|
Loading…
Add table
Add a link
Reference in a new issue