2023-07-17 14:37:45 +00:00
|
|
|
# We could probably avoid rebooting in some cases, but those should never happen
|
|
|
|
# in normal operation anyway. This way all setup is done before rebooting once.
|
|
|
|
|
|
|
|
- name: Configure SSH instance in management VRF
|
2023-11-20 11:55:52 +00:00
|
|
|
copy:
|
|
|
|
dest: /etc/ssh/
|
|
|
|
src: sshd_config.mgmt
|
2023-07-17 14:37:45 +00:00
|
|
|
mode: 0644
|
|
|
|
notify: reboot
|
|
|
|
|
|
|
|
- name: Set up a SSH instance in management VRF
|
|
|
|
copy:
|
|
|
|
dest: /etc/systemd/system/
|
|
|
|
src: sshd@mgmt.service
|
|
|
|
mode: 0644
|
|
|
|
notify: reboot
|
|
|
|
|
|
|
|
- name: Enable management SSH
|
|
|
|
service:
|
|
|
|
name: sshd@mgmt
|
|
|
|
enabled: yes
|
|
|
|
notify: reboot
|
|
|
|
|
|
|
|
- meta: flush_handlers
|