blob: e1651ab5e00404071359bd3392663679ee8cff06 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
---
- name: create netplan conf-available directory
file:
path: /etc/netplan/conf-available
state: directory
- name: install netplan configs
template:
src: "netplan/{{ item }}.yaml.j2"
dest: "/etc/netplan/conf-available/{{ item }}.yaml"
with_items:
- lan-only
- r3
- r3-with-lan
# - festival
# - elevate-office
# - dhcp
notify: netplan apply
- name: remove default netplan config
file:
path: /etc/netplan/01-netcfg.yaml
state: absent
notify: netplan apply
- name: set active netwok setup
file:
state: link
dest: /etc/netplan/01-active.yaml
src: "conf-available/{{ network_setup }}.yaml"
notify: netplan apply
- name: make sure network config has been applied
meta: flush_handlers
|