network/roles/firewall/tasks/mgmt.yml

14 lines
290 B
YAML
Raw Normal View History

2023-12-18 10:22:14 +00:00
- name: Set up management interfaces
template:
dest: /etc/network/interfaces.d/mgmt.intf
src: mgmt.intf.j2
mode: 0644
2024-05-19 08:09:37 +00:00
notify: reboot
2023-12-18 10:22:14 +00:00
- name: Run SSH in management VRF
lineinfile:
path: /etc/conf.d/sshd
2024-05-19 08:09:37 +00:00
regexp: "#* *vrf="
2023-12-18 10:22:14 +00:00
line: "vrf=\"mgmt\""
2024-05-19 08:09:37 +00:00
notify: reboot