1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_collection_users.git synced 2024-08-16 10:29:50 +02:00
ansible_collection_users/roles/sshd/handlers/main.yml
L3D 8106d0a4da
Improve login as root
+ fixed bug in sshd handler
+ allowed login as root better
+ ssh pubkeys for root
2024-04-15 13:04:08 +02:00

8 lines
253 B
YAML

---
- name: Restart SSHD Server
become: true
listen: 'systemctl restart sshd'
ansible.builtin.systemd:
name: "{{ l3d_users__sshd_service }}"
state: restarted
when: l3d_users__sshd__service is defined and ansible_service_mgr == 'systemd'