network/roles/firewall/tasks/mgmt.yml
2024-06-20 20:54:42 +02:00

14 lines
290 B
YAML

- name: Set up management interfaces
template:
dest: /etc/network/interfaces.d/mgmt.intf
src: mgmt.intf.j2
mode: 0644
notify: reboot
- name: Run SSH in management VRF
lineinfile:
path: /etc/conf.d/sshd
regexp: "#* *vrf="
line: "vrf=\"mgmt\""
notify: reboot