Now configuring magic-router as well
This commit is contained in:
@ -6,6 +6,7 @@
|
||||
|
||||
- name: "Install my favourite applications"
|
||||
apt:
|
||||
update_cache: true
|
||||
state: present
|
||||
name:
|
||||
- tmux
|
||||
|
6
ansible/tasks/enable-routing.yaml
Normal file
6
ansible/tasks/enable-routing.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
- name: enable routing in sysctl config
|
||||
ansible.posix.sysctl:
|
||||
name: net.ipv4.ip_forward
|
||||
value: 1
|
||||
state: present
|
||||
reload: true
|
@ -7,4 +7,12 @@
|
||||
template:
|
||||
src: templates/netplan.yaml
|
||||
dest: /etc/netplan/00-static.yaml
|
||||
notify: netplanapply
|
||||
notify: netplanapply
|
||||
when: ansible_host != "magic-router"
|
||||
|
||||
- name: "install static config for magic router"
|
||||
copy:
|
||||
src: files/magic_router_netplan.yaml
|
||||
dest: /etc/netplan/00-static.yaml
|
||||
notify: netplanapply
|
||||
when: ansible_host == "magic-router"
|
Reference in New Issue
Block a user