Different tasks added
This commit is contained in:
14
adminer.yml
Normal file
14
adminer.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
# Adminer
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventories/client tasks/adminer.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
- hosts: all
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
roles:
|
||||||
|
|
||||||
|
- lsa.adminer
|
||||||
14
antivir.yml
Normal file
14
antivir.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
# Adminer
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventories/client tasks/antivir.chkrootkit.yml --limit etc
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
- hosts: all
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
roles:
|
||||||
|
|
||||||
|
- lsa.antivir
|
||||||
16
apt.upgrade.dist.yml
Normal file
16
apt.upgrade.dist.yml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
# Upgrade Distro & all APT packages (Debian/Ubuntu)
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/apt.upgrade.dist.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
- name: Upgrade Distro & all packages
|
||||||
|
hosts: all
|
||||||
|
become: true
|
||||||
|
vars:
|
||||||
|
packagemanager_dist_upgrade: true
|
||||||
|
|
||||||
|
roles:
|
||||||
|
- packagemanager
|
||||||
17
apt.upgrade.yml
Normal file
17
apt.upgrade.yml
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
---
|
||||||
|
# Upgrade all APT packages (Debian/Ubuntu)
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/apt.upgrade.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
- name: Upgrade all packages
|
||||||
|
hosts: all
|
||||||
|
become: true
|
||||||
|
|
||||||
|
vars:
|
||||||
|
packagemanager_upgrade: true
|
||||||
|
|
||||||
|
roles:
|
||||||
|
- packagemanager
|
||||||
14
audit.yml
Normal file
14
audit.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
# Audit
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/audit.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
- hosts: all
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
roles:
|
||||||
|
|
||||||
|
- lsa.audit
|
||||||
14
build.yml
Normal file
14
build.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
# Build
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/build.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
- hosts: all
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
roles:
|
||||||
|
|
||||||
|
- build
|
||||||
15
certbot.webserver.yml
Normal file
15
certbot.webserver.yml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
---
|
||||||
|
# Certbot & Webserver
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/certbot.webserver.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
- hosts: all
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
roles:
|
||||||
|
|
||||||
|
- lsa.certbot
|
||||||
|
- lsa.webserver
|
||||||
14
certbot.yml
Normal file
14
certbot.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
# Setup Certbot (Let´s Encrypt) and grab certs for all services in group_vars/nginxproxy.yml
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/certbot.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
- hosts: all
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
roles:
|
||||||
|
|
||||||
|
- lsa.certbot
|
||||||
14
composer.yml
Normal file
14
composer.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
# Setup Composer globally
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/composer.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
- hosts: all
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
roles:
|
||||||
|
|
||||||
|
- lsa.composer
|
||||||
14
coturn.yml
Normal file
14
coturn.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
# Coturn
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/coturn.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
- hosts: all
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
roles:
|
||||||
|
|
||||||
|
- coturn
|
||||||
14
database.yml
Normal file
14
database.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
# Database
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/database.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
- hosts: all
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
roles:
|
||||||
|
|
||||||
|
- lsa.db
|
||||||
14
docker.yml
Normal file
14
docker.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
# Docker
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/docker.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
- hosts: all
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
roles:
|
||||||
|
|
||||||
|
- lsa.docker
|
||||||
19
exec.yml
Normal file
19
exec.yml
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
---
|
||||||
|
# Execute custom scripts
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/exec.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
# Vars:
|
||||||
|
# execute_script:
|
||||||
|
# - name: "syncssl"
|
||||||
|
# path: "/usr/local/bin/sync-froxlorssl.sh"
|
||||||
|
# - name: "syncdata"
|
||||||
|
# path: "/usr/local/bin/sync-froxlordata.sh"
|
||||||
|
- hosts: all
|
||||||
|
|
||||||
|
roles:
|
||||||
|
|
||||||
|
- exec
|
||||||
14
firewall.yml
Normal file
14
firewall.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
# Firewall
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/firewall.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
- hosts: all
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
roles:
|
||||||
|
|
||||||
|
- firewall
|
||||||
14
froxlor.yml
Normal file
14
froxlor.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
# Froxlor
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/froxlor.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
- hosts: all
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
roles:
|
||||||
|
|
||||||
|
- froxlor
|
||||||
14
git.yml
Normal file
14
git.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
# Git
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/git.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
- hosts: all
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
roles:
|
||||||
|
|
||||||
|
- lsa.git
|
||||||
14
glances.yml
Normal file
14
glances.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
# Glances
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/glances.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
- hosts: all
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
roles:
|
||||||
|
|
||||||
|
- glances
|
||||||
14
immich.podman.yml
Normal file
14
immich.podman.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
# Immich on Debian via Podman + systemd (Quadlet)
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/immich.podman.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
- name: Immich on Debian via Podman + systemd (Quadlet)
|
||||||
|
hosts: all
|
||||||
|
become: true
|
||||||
|
|
||||||
|
roles:
|
||||||
|
- lsa.immich
|
||||||
14
java.yml
Normal file
14
java.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
# Java
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/java.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
- hosts: all
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
roles:
|
||||||
|
|
||||||
|
- java
|
||||||
14
jellyfin.yml
Normal file
14
jellyfin.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
# Jellyfin Media Server
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/jellyfin.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
- hosts: all
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
roles:
|
||||||
|
|
||||||
|
- lsa.jellyfin
|
||||||
16
keycloak.certbot.webserver.yml
Normal file
16
keycloak.certbot.webserver.yml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
# Setup Keycloak, Certbot & Webserver
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/certbot.webserver.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
- hosts: all
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
roles:
|
||||||
|
|
||||||
|
- keycloak
|
||||||
|
- lsa.certbot
|
||||||
|
- webserver
|
||||||
14
keycloak.yml
Normal file
14
keycloak.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
# Keycloak
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/keycloak.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
- hosts: all
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
roles:
|
||||||
|
|
||||||
|
- keycloak
|
||||||
14
mailserver.yml
Normal file
14
mailserver.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
# Mailserver
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/mailserver.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
- hosts: all
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
roles:
|
||||||
|
|
||||||
|
- mailserver
|
||||||
14
matomo.yml
Normal file
14
matomo.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
# Matomo
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/matomo.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
- hosts: all
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
roles:
|
||||||
|
|
||||||
|
- matomo
|
||||||
14
mcaptcha.yml
Normal file
14
mcaptcha.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
# mCaptcha
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/mcaptcha.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
- hosts: all
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
roles:
|
||||||
|
|
||||||
|
- lsa.mcaptcha
|
||||||
14
mdm.yml
Normal file
14
mdm.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
# MicroMDM and NanoMDM
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/mdm.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
- name: MicroMDM and NanoMDM
|
||||||
|
hosts: all
|
||||||
|
become: true
|
||||||
|
|
||||||
|
roles:
|
||||||
|
- lsa.mdm
|
||||||
14
mediawiki.yml
Normal file
14
mediawiki.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
# Mediawiki
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/mediawiki.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
- hosts: all
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
roles:
|
||||||
|
|
||||||
|
- mediawiki
|
||||||
14
monit.yml
Normal file
14
monit.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
# Monit
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/monit.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
- hosts: all
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
roles:
|
||||||
|
|
||||||
|
- monit
|
||||||
14
moodle.yml
Normal file
14
moodle.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
# Setup Moodle
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/moodle.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
- hosts: all
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
roles:
|
||||||
|
|
||||||
|
- lsa.moodle
|
||||||
14
n8n.yml
Normal file
14
n8n.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
# n8n
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/n8n.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
- hosts: all
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
roles:
|
||||||
|
|
||||||
|
- lsa.n8n
|
||||||
13
network.yml
Normal file
13
network.yml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
---
|
||||||
|
# Update all hostnames from ansible_inventory
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/network.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See README.md and init your workspace
|
||||||
|
- hosts: all
|
||||||
|
|
||||||
|
roles:
|
||||||
|
|
||||||
|
- network
|
||||||
14
nextcloud.yml
Normal file
14
nextcloud.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
# Nextcloud
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/nextcloud.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
- hosts: all
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
roles:
|
||||||
|
|
||||||
|
- nextcloud
|
||||||
14
nodejs.yml
Normal file
14
nodejs.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
# NodeJS
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/nodejs.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
- hosts: all
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
roles:
|
||||||
|
|
||||||
|
- lsa.nodejs
|
||||||
14
oauth2proxy.yml
Normal file
14
oauth2proxy.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
# OAuth2 Proxy
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/oauth2proxy.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
- hosts: all
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
roles:
|
||||||
|
|
||||||
|
- lsa.oauth2proxy
|
||||||
14
php-docker.yml
Normal file
14
php-docker.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
# PHP Docker
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/php-docker.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
- hosts: all
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
roles:
|
||||||
|
|
||||||
|
- lsa.php-docker
|
||||||
16
php.certbot.webserver.yml
Normal file
16
php.certbot.webserver.yml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
# PHP, Certbot and Webserver
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/php.certbot.webserver.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
- hosts: all
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
roles:
|
||||||
|
|
||||||
|
- lsa.php
|
||||||
|
- lsa.certbot
|
||||||
|
- lsa.webserver
|
||||||
17
php.database.certbot.webserver.yml
Normal file
17
php.database.certbot.webserver.yml
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
---
|
||||||
|
# PHP, DB, Certbot and Webserver
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/php.database.certbot.webserver.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
- hosts: all
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
roles:
|
||||||
|
|
||||||
|
- lsa.php
|
||||||
|
- lsa.db
|
||||||
|
- lsa.certbot
|
||||||
|
- lsa.webserver
|
||||||
16
php.database.webserver.yml
Normal file
16
php.database.webserver.yml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
# PHP, DB and Webserver
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/php.database.webserver.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
- hosts: all
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
roles:
|
||||||
|
|
||||||
|
- lsa.php
|
||||||
|
- lsa.db
|
||||||
|
- lsa.webserver
|
||||||
15
php.database.yml
Normal file
15
php.database.yml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
---
|
||||||
|
# PHP and Database
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/php.database.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
- hosts: all
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
roles:
|
||||||
|
|
||||||
|
- lsa.php
|
||||||
|
- lsa.db
|
||||||
15
php.webserver.yml
Normal file
15
php.webserver.yml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
---
|
||||||
|
# PHP and Webserver
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/php.webserver.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
- hosts: all
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
roles:
|
||||||
|
|
||||||
|
- lsa.php
|
||||||
|
- lsa.webserver
|
||||||
14
php.yml
Normal file
14
php.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
# PHP
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/php.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
- hosts: all
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
roles:
|
||||||
|
|
||||||
|
- lsa.php
|
||||||
14
portainer.yml
Normal file
14
portainer.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
# Portainer
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/portainer.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
- hosts: all
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
roles:
|
||||||
|
|
||||||
|
- portainer
|
||||||
17
proftpd.yml
Normal file
17
proftpd.yml
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
---
|
||||||
|
# proftpd (at the moment just tls config)
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/proftpd.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
- hosts: all
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
collections:
|
||||||
|
- ansible.posix
|
||||||
|
|
||||||
|
roles:
|
||||||
|
|
||||||
|
- lsa.proftpd
|
||||||
14
redis.yml
Normal file
14
redis.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
# Redis
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/redis.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
- hosts: all
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
roles:
|
||||||
|
|
||||||
|
- redis
|
||||||
14
semaphore.yml
Normal file
14
semaphore.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
# Semaphore
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/semaphore.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
- hosts: all
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
roles:
|
||||||
|
|
||||||
|
- lsa.semaphore
|
||||||
14
shell.tmux.yml
Normal file
14
shell.tmux.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
# tmux
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventories/client tasks/shell.tmux.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
- hosts: all
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
roles:
|
||||||
|
|
||||||
|
- lsa.tmux
|
||||||
16
shell.zsh.yml
Normal file
16
shell.zsh.yml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
# Shell (zsh)
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/shell.zsh.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
- name: Setup Shell (zsh)
|
||||||
|
hosts: all
|
||||||
|
|
||||||
|
vars:
|
||||||
|
|
||||||
|
roles:
|
||||||
|
|
||||||
|
- zsh
|
||||||
14
signaling.yml
Normal file
14
signaling.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
# Signaling
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/signaling.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
- hosts: all
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
roles:
|
||||||
|
|
||||||
|
- signaling
|
||||||
13
ssh.yml
Normal file
13
ssh.yml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
---
|
||||||
|
# SSH
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/ssh.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
- hosts: all
|
||||||
|
|
||||||
|
roles:
|
||||||
|
|
||||||
|
- ssh
|
||||||
13
sync.yml
Normal file
13
sync.yml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
---
|
||||||
|
# Sync
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/sync.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
- hosts: all
|
||||||
|
|
||||||
|
roles:
|
||||||
|
|
||||||
|
- sync
|
||||||
13
system.fetch-files.yml
Normal file
13
system.fetch-files.yml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
---
|
||||||
|
# Fetch files from remote hosts
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/system.fetch-files.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
- hosts: all
|
||||||
|
|
||||||
|
roles:
|
||||||
|
|
||||||
|
- system-fetchfiles
|
||||||
22
umami.db.nodejs.git.yml
Normal file
22
umami.db.nodejs.git.yml
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
---
|
||||||
|
# Setup Umami
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/umami.db.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
# This playbook will setup the database for Umami, which is required before installing Umami itself.
|
||||||
|
# It will install Git and Node.js, then clone the Umami repository, set up the database variables, and finally set up the database itself.
|
||||||
|
# Note: The Umami role will be run twice, first to set up the database variables and then to set up the database itself. This is necessary because the database variables need to be set before the database can be set up.
|
||||||
|
- hosts: all
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
roles:
|
||||||
|
|
||||||
|
- role: lsa.git
|
||||||
|
- role: lsa.nodejs
|
||||||
|
- role: lsa.umami
|
||||||
|
tasks_from: db-vars.yml
|
||||||
|
- role: lsa.db
|
||||||
|
- role: lsa.umami
|
||||||
20
umami.db.yml
Normal file
20
umami.db.yml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
---
|
||||||
|
# Setup Umami
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/umami.db.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
# This playbook will setup the database for Umami, which is required before installing Umami itself.
|
||||||
|
- hosts: all
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
pre_tasks:
|
||||||
|
- name: Build DB vars from umami_sites
|
||||||
|
include_role:
|
||||||
|
name: lsa.umami
|
||||||
|
tasks_from: db-vars.yml
|
||||||
|
roles:
|
||||||
|
- role: lsa.db
|
||||||
|
- role: lsa.umami
|
||||||
24
umami.dbexport.yml
Normal file
24
umami.dbexport.yml
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
---
|
||||||
|
# Setup Umami
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/umami.db.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
# This playbook will export the database for Umami. It will fetch the database dump from the remote host and save it to the specified destination.
|
||||||
|
- hosts: all
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
pre_tasks:
|
||||||
|
- name: Build DB vars from umami_sites
|
||||||
|
include_role:
|
||||||
|
name: lsa.umami
|
||||||
|
tasks_from: db-vars.yml
|
||||||
|
vars:
|
||||||
|
postgres_dump_fetch: true
|
||||||
|
postgres_dump_fetch_dest: "{{ __postgres_dump_fetch_dest | default ('inventories/client/files/sql/') }}"
|
||||||
|
roles:
|
||||||
|
- role: lsa.db
|
||||||
|
tasks:
|
||||||
|
- include_tasks: /etc/ansible/roles/lsa.db/tasks/postgres/export.yml
|
||||||
26
umami.dbimport.yml
Normal file
26
umami.dbimport.yml
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
---
|
||||||
|
# Import Umami Postgres SQL File
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/umami.db.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
# This playbook will import the database for Umami. It will fetch the database dump from the specified destination, then import it into the database.
|
||||||
|
- hosts: all
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
pre_tasks:
|
||||||
|
|
||||||
|
- name: Build DB vars from umami_sites
|
||||||
|
include_role:
|
||||||
|
name: lsa.umami
|
||||||
|
tasks_from: db-vars.yml
|
||||||
|
vars:
|
||||||
|
|
||||||
|
postgres_import_drop_recreate: true
|
||||||
|
postgres_import_fetch_dest: "{{ __postgres_dump_fetch_dest | default ('inventories/client/files/sql/') }}"
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- include_tasks: /etc/ansible/roles/lsa.db/tasks/postgres/import.yml
|
||||||
16
umami.yml
Normal file
16
umami.yml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
# Setup Umami
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/umami.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
# This playbook will install Umami, which is a self-hosted web analytics solution.
|
||||||
|
# Prepare: Install Git, Node.js. Initialize database before!
|
||||||
|
- hosts: all
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
roles:
|
||||||
|
|
||||||
|
- role: lsa.umami
|
||||||
14
update-hostname.yml
Normal file
14
update-hostname.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
# Update all hostnames from ansible_inventory
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/system/network/update-hostname.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
# This playbook will update the hostname of the remote hosts to match the inventory. It will also update the /etc/hosts file to reflect the new hostname.
|
||||||
|
- hosts: all
|
||||||
|
|
||||||
|
roles:
|
||||||
|
|
||||||
|
- network
|
||||||
14
webmail.yml
Normal file
14
webmail.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
# Webmail
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/webmail.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
- hosts: all
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
roles:
|
||||||
|
|
||||||
|
- webmail
|
||||||
14
webserver.yml
Normal file
14
webserver.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
# Webserver
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/webserver.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
- hosts: all
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
roles:
|
||||||
|
|
||||||
|
- lsa.webserver
|
||||||
16
wikijs.yml
Normal file
16
wikijs.yml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
# Wikijs
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/wikijs.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
- name: setup wikijs
|
||||||
|
hosts: all
|
||||||
|
|
||||||
|
vars:
|
||||||
|
|
||||||
|
roles:
|
||||||
|
|
||||||
|
- lsa.wikijs
|
||||||
16
wordpress.mailer.yml
Normal file
16
wordpress.mailer.yml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
# WordPress Mailer
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/wordpress.mailer.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
- name: setup wordpress
|
||||||
|
hosts: all
|
||||||
|
|
||||||
|
vars:
|
||||||
|
|
||||||
|
roles:
|
||||||
|
|
||||||
|
- lsa.wordpress_mailer
|
||||||
16
wordpress.yml
Normal file
16
wordpress.yml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
# WordPress
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# ansible-playbook -i inventory/hosts tasks/wordpress.yml
|
||||||
|
#
|
||||||
|
# Prepare:
|
||||||
|
# See readme.md and init your workspace
|
||||||
|
- name: setup wordpress
|
||||||
|
hosts: all
|
||||||
|
|
||||||
|
vars:
|
||||||
|
|
||||||
|
roles:
|
||||||
|
|
||||||
|
- wordpress
|
||||||
Reference in New Issue
Block a user