Add two example playbooks

This commit is contained in:
Ivo C.S. Wingelaar 2024-10-13 19:44:09 +02:00
parent 11f20db2d2
commit 63c767f116
Signed by: ivo
GPG key ID: ABBED434F58D0AA3
2 changed files with 41 additions and 0 deletions

View file

@ -0,0 +1,18 @@
---
- name: Run example SCE backup creation playbook
hosts: sce-targets
become: true
roles:
- role: wingelaar.sce.backup_nfs
vars:
backup_nfs_remote: 127.0.0.1
backup_nfs_targets:
- user: podman
containers:
- name: forgejo
volumes:
- forgejo
- name: certbot
volumes:
- certbot-etc
- certbot-var-lib

23
playbooks/example.yml Normal file
View file

@ -0,0 +1,23 @@
---
- name: Run example SCE playbook
hosts: sce-targets
become: true
roles:
- wingelaar.sce.install
- role: wingelaar.sce.firewall_nft
vars:
firewall_nft_port_mapping:
- "80:8080"
- "22:2222"
- role: wingelaar.sce.podman_certbot
vars:
podman_certbot_domains: git.example.com
podman_certbot_email: certbot@example.com
- wingelaar.sce.podman_certbot_root_transfer
- role: wingelaar.sce.nginx
vars:
nginx_htpasswd: super_secure_password
nginx_sites:
- name: git.example.com
port: 3000
- role: wingelaar.sce.podman_forgejo