Active connections should survive a restart of the service and testing also didn't show any issues.
This commit is contained in:
parent
9c57fca876
commit
3548c1f4d6
3 changed files with 9 additions and 6 deletions
|
@ -174,3 +174,6 @@ netbox_hosts:
|
||||||
proxmox_vm_template_hosts:
|
proxmox_vm_template_hosts:
|
||||||
hosts:
|
hosts:
|
||||||
chaosknoten:
|
chaosknoten:
|
||||||
|
ansible_pull_hosts:
|
||||||
|
hosts:
|
||||||
|
netbox:
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
- name: reboot the system
|
- name: restart the ssh service
|
||||||
|
ansible.builtin.systemd:
|
||||||
|
name: ssh.service
|
||||||
|
state: restarted
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.reboot:
|
|
||||||
|
|
|
@ -12,8 +12,7 @@
|
||||||
group: root
|
group: root
|
||||||
src: sshd_config.j2
|
src: sshd_config.j2
|
||||||
notify:
|
notify:
|
||||||
# Reboot instead of just restarting the ssh service, since I don't know how Ansible reacts, when it restarts the service it probably needs for the connection.
|
- restart the ssh service
|
||||||
- reboot the system
|
|
||||||
|
|
||||||
- name: deactivate short moduli
|
- name: deactivate short moduli
|
||||||
ansible.builtin.shell:
|
ansible.builtin.shell:
|
||||||
|
@ -32,5 +31,4 @@
|
||||||
changed_when:
|
changed_when:
|
||||||
- '"ansible-changed" in result.stdout'
|
- '"ansible-changed" in result.stdout'
|
||||||
notify:
|
notify:
|
||||||
# Reboot instead of just restarting the ssh service, since I don't know how Ansible reacts, when it restarts the service it probably needs for the connection.
|
- restart the ssh service
|
||||||
- reboot the system
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue