Add two example playbooks
This commit is contained in:
parent
11f20db2d2
commit
63c767f116
2 changed files with 41 additions and 0 deletions
18
playbooks/example-backup.yml
Normal file
18
playbooks/example-backup.yml
Normal 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
23
playbooks/example.yml
Normal 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
|
||||
Loading…
Reference in a new issue