2021-08-26 02:39:17 -05:00
|
|
|
#!/usr/bin/env ansible-playbook
|
|
|
|
# vim:ft=ansible:
|
|
|
|
---
|
|
|
|
# Preambulatory system configuration
|
|
|
|
- hosts: all
|
|
|
|
tasks:
|
|
|
|
- name: collect service facts
|
|
|
|
service_facts:
|
|
|
|
tags: [ always ]
|
|
|
|
roles:
|
|
|
|
- role: common
|
|
|
|
tags: [ common ]
|
|
|
|
- role: adminuser
|
|
|
|
tags: [ adminuser, common ]
|
2021-09-18 16:10:54 -05:00
|
|
|
- role: willshersystems.sshd
|
2021-08-26 02:39:17 -05:00
|
|
|
vars:
|
|
|
|
sshd:
|
|
|
|
AcceptEnv: "LANG LC_*"
|
|
|
|
ChallengeResponseAuthentication: no
|
|
|
|
Compression: yes
|
|
|
|
PasswordAuthentication: no
|
|
|
|
PermitRootLogin: no
|
|
|
|
PrintMotd: no
|
|
|
|
PubkeyAuthentication: yes
|
|
|
|
Subsystem: "sftp /usr/lib/openssh/sftp-server"
|
|
|
|
UsePAM: yes
|
|
|
|
X11Forwarding: no
|
|
|
|
tags: [ sshd, common ]
|
2021-11-06 15:56:35 -05:00
|
|
|
- hosts: all:!tags_no-docker
|
2021-11-06 15:53:57 -05:00
|
|
|
roles:
|
|
|
|
- role: geerlingguy.docker
|
|
|
|
tags: [ docker, common, skip-pull ]
|