UpdateServersPlaybook/roles/security/tasks/main.yml
2024-07-12 14:15:19 -04:00

12 lines
322 B
YAML

---
- 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