diff --git a/ansible/roles/ssh_users/tasks/main.yml b/ansible/roles/ssh_users/tasks/main.yml index fd3fca48..b0e11eaf 100644 --- a/ansible/roles/ssh_users/tasks/main.yml +++ b/ansible/roles/ssh_users/tasks/main.yml @@ -73,3 +73,11 @@ ansible.builtin.file: path: /etc/sudoers.d/adm state: absent + +- name: configure sshd + include_role: + name: willshersystems.sshd + vars: + sshd_skip_defaults: false + sshd: + AllowUsers: "{{ admin_usernames | union(non_admin_usernames) | sort | join(' ') }}"