Skip to content

Commit

Permalink
feat: use galaxy module to configure sshd (#78)
Browse files Browse the repository at this point in the history
This is part of the work being done in #27. 

This diff adds support for using the ansible galaxy module
((ansible-sshd){https://github.com/willshersystems/ansible-sshd}) to
configure sshd on the ansible-controller and other hosts (all hosts
using the `ssh_users` role)

---------

Co-authored-by: decfox <decfox@decfoxs-MBP.lan>
  • Loading branch information
DecFox and decfox authored Jul 24, 2024
1 parent 0596280 commit d820d3c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ansible/roles/ssh_users/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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(' ') }}"

0 comments on commit d820d3c

Please sign in to comment.