Add network interfaces config
This commit is contained in:
5
tasks/interfaces.yml
Normal file
5
tasks/interfaces.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
- name: interfaces - /etc/network/interfaces
|
||||
template: "dest=/etc/network/interfaces src={{ common_interfaces }} owner=root group=root mode=0644"
|
||||
notify:
|
||||
restart networking
|
||||
@@ -69,6 +69,10 @@
|
||||
when: common_logrotate
|
||||
tags: ['common', 'logrotate']
|
||||
|
||||
- import_tasks: interfaces.yml
|
||||
when: common_interfaces
|
||||
tags: ['common', 'interfaces']
|
||||
|
||||
- import_tasks: iptables.yml
|
||||
when: common_iptables and ansible_os_family == "Debian"
|
||||
tags: ['common', 'iptables']
|
||||
|
||||
Reference in New Issue
Block a user