16 lines
443 B
YAML
16 lines
443 B
YAML
---
|
|
|
|
- name: Copy interface file
|
|
template: src=../roles/configure-interfaces/templates/interfaces dest=/etc/network/interfaces
|
|
|
|
|
|
- name: Copy interface cfg file
|
|
vars:
|
|
interface_name: eth0
|
|
template: src=../roles/configure-interfaces/templates/eth.cfg.j2 dest=/etc/network/interfaces.d/{{ interface_name }}.cfg
|
|
|
|
- name: Up down interface
|
|
raw: ifdown {{ interface_name }} && ifup {{ interface_name }}
|
|
vars:
|
|
interface_name: eth0
|