Add first playbook

This commit is contained in:
Lan Quil 2024-06-11 23:23:41 +02:00
parent 3be41c4da4
commit d9adab4da4
2 changed files with 21 additions and 0 deletions

12
playbooks/00-prepare.yaml Normal file
View File

@ -0,0 +1,12 @@
---
- name: General system preparation
hosts: all
tasks:
- name: Apt update
ansible.builtin.apt:
update_cache: true
- name: Apt cleanup
ansible.builtin.apt:
autoremove: true
autoclean: true

9
playbooks/main.yaml Executable file
View File

@ -0,0 +1,9 @@
#!/usr/bin/env ansible-playbook
---
# Preparation
- import_playbook: 00-prepare.yaml
- import_playbook: 01-ssh.yaml
# Bind setup
- import_playbook: 10-firewall.yaml
- import_playbook: 20-bind.yaml