Files
linone-infra/main.yaml
2024-01-07 11:00:35 +01:00

27 lines
498 B
YAML

---
# This playbook is used to bootstrap a new server with the ansible user.
# Only run this once, then comment it out
# - hosts: all
# become: true
# remote_user: wholteza
# roles:
# - role: bootstrap
# vars_files:
# - vars/bootstrap.yaml
- hosts: prod
become: true
roles:
- role: users
- role: sshd
- role: ufw
- role: docker
vars_files:
- vars/vault.yaml
handlers:
- name: restart sshd
service:
name: sshd
state: restarted