Files
configpolicy/roles/net-ifaces/tasks/main.yml
Dustin C. Hatch 704850caa9 roles/net-ifaces: Configure virtual net interfaces
The *net-ifaces* role manages a script that creates virtual network
interfaces, such as bridge, bond, and VLAN, that `dhcpcd`/`dhclient`
alone cannot. This provides a lightweight alternative to
*systemd-networkd* and *NetworkMangager*.
2018-07-23 17:35:10 -05:00

18 lines
418 B
YAML

- name: ensure net-ifaces script is installed
copy:
src={{ inventory_hostname }}.sh
dest=/usr/local/libexec/net-ifaces.sh
mode=0755
- name: ensure net-ifaces systemd unit is installed
copy:
src=net-ifaces.service
dest=/etc/systemd/system/net-ifaces.service
mode=0644
notify: reload systemd
- name: ensure net-ifaces service starts at boot
service:
name=net-ifaces
enabled=yes