1 #####################################
2 ### someone's ansible provisioner ###
3 #####################################
4 # Part of: https://git.somenet.org/root/pub/somesible.git
5 # 2017-2024 by someone <someone@somenet.org>
15 ignore_errors: "{{ignore_online_errors | bool}}"
18 - name: copy sshd config
21 dest: "/etc/ssh/sshd_config"
25 validate: /usr/sbin/sshd -t -f %s
27 - "{{lookup('env','PWD')}}/host_files/{{inventory_hostname}}/{{role_name}}/sshd_config"
28 - "{{lookup('env','PWD')}}/group_files/{{group_files_group}}/{{role_name}}/sshd_config"
29 - "{{lookup('env','PWD')}}/group_files/all/{{role_name}}/sshd_config"
30 - "default/sshd_config"
31 notify: restart sshd.service
34 - name: ensure group sudo exists - sudoers can use pw to login
41 - name: enable and start ssh.service
42 include_role: name="base/systemd/enable-and-start"
44 service_name: ssh.service