33 lines
854 B
YAML
Executable File
33 lines
854 B
YAML
Executable File
#!/usr/bin/env ansible-playbook
|
|
# vim:ft=ansible:
|
|
---
|
|
# Preambulatory system configuration
|
|
- hosts: all
|
|
tasks:
|
|
- name: collect service facts
|
|
ansible.builtin.service_facts:
|
|
tags: [ always ]
|
|
roles:
|
|
- role: common
|
|
tags: [ common ]
|
|
- role: adminuser
|
|
tags: [ adminuser, common ]
|
|
- role: willshersystems.sshd
|
|
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 ]
|
|
- hosts: all:!tags_no-docker
|
|
roles:
|
|
- role: geerlingguy.docker
|
|
tags: [ docker, common, skip-pull ]
|