UpdateServersPlaybook/roles/security/tasks/main.yml

12 lines
322 B
YAML
Raw Normal View History

2024-07-12 20:15:19 +02:00
---
- name: Set LoginGraceTime to 0 on SSH
become: true
ansible.builtin.lineinfile:
path: /etc/ssh/sshd_config
regexp: '^#LoginGraceTime'
line: LoginGraceTime
ansible.builtin.lineinfile:
path: /etc/ssh/sshd_config
regexp: '^LoginGraceTime'
line: LoginGraceTime 0
notify: Restart service ssh