--- # ssh-hardening / linux / t1 "Standard" # # Same result as the quick start, as a role you can reuse and override per group. # # Run: # ansible-playbook -i inventory.ini site.yml --check --diff # ansible-playbook -i inventory.ini site.yml # # Override per group in your inventory, and leave the role itself untouched: # group_vars/bastion.yml # ssh_hardening_allow_groups: [ssh-users, jump-admins] # ssh_hardening_max_auth_tries: 6 - name: Harden SSH hosts: all become: true gather_facts: true roles: - role: ssh_hardening tags: [ssh, hardening]