From e82e73e13f9a2949327d6393b5038eeb39184a6e Mon Sep 17 00:00:00 2001 From: Michael Hettwer Date: Sun, 15 Mar 2026 16:04:42 +0100 Subject: [PATCH] Different tasks added --- adminer.yml | 14 ++++++++++++++ antivir.yml | 14 ++++++++++++++ apt.upgrade.dist.yml | 16 ++++++++++++++++ apt.upgrade.yml | 17 +++++++++++++++++ audit.yml | 14 ++++++++++++++ build.yml | 14 ++++++++++++++ certbot.webserver.yml | 15 +++++++++++++++ certbot.yml | 14 ++++++++++++++ composer.yml | 14 ++++++++++++++ coturn.yml | 14 ++++++++++++++ database.yml | 14 ++++++++++++++ docker.yml | 14 ++++++++++++++ exec.yml | 19 +++++++++++++++++++ firewall.yml | 14 ++++++++++++++ froxlor.yml | 14 ++++++++++++++ git.yml | 14 ++++++++++++++ glances.yml | 14 ++++++++++++++ immich.podman.yml | 14 ++++++++++++++ java.yml | 14 ++++++++++++++ jellyfin.yml | 14 ++++++++++++++ keycloak.certbot.webserver.yml | 16 ++++++++++++++++ keycloak.yml | 14 ++++++++++++++ mailserver.yml | 14 ++++++++++++++ matomo.yml | 14 ++++++++++++++ mcaptcha.yml | 14 ++++++++++++++ mdm.yml | 14 ++++++++++++++ mediawiki.yml | 14 ++++++++++++++ monit.yml | 14 ++++++++++++++ moodle.yml | 14 ++++++++++++++ n8n.yml | 14 ++++++++++++++ network.yml | 13 +++++++++++++ nextcloud.yml | 14 ++++++++++++++ nodejs.yml | 14 ++++++++++++++ oauth2proxy.yml | 14 ++++++++++++++ php-docker.yml | 14 ++++++++++++++ php.certbot.webserver.yml | 16 ++++++++++++++++ php.database.certbot.webserver.yml | 17 +++++++++++++++++ php.database.webserver.yml | 16 ++++++++++++++++ php.database.yml | 15 +++++++++++++++ php.webserver.yml | 15 +++++++++++++++ php.yml | 14 ++++++++++++++ portainer.yml | 14 ++++++++++++++ proftpd.yml | 17 +++++++++++++++++ redis.yml | 14 ++++++++++++++ semaphore.yml | 14 ++++++++++++++ shell.tmux.yml | 14 ++++++++++++++ shell.zsh.yml | 16 ++++++++++++++++ signaling.yml | 14 ++++++++++++++ ssh.yml | 13 +++++++++++++ sync.yml | 13 +++++++++++++ system.fetch-files.yml | 13 +++++++++++++ umami.db.nodejs.git.yml | 22 ++++++++++++++++++++++ umami.db.yml | 20 ++++++++++++++++++++ umami.dbexport.yml | 24 ++++++++++++++++++++++++ umami.dbimport.yml | 26 ++++++++++++++++++++++++++ umami.yml | 16 ++++++++++++++++ update-hostname.yml | 14 ++++++++++++++ webmail.yml | 14 ++++++++++++++ webserver.yml | 14 ++++++++++++++ wikijs.yml | 16 ++++++++++++++++ wordpress.mailer.yml | 16 ++++++++++++++++ wordpress.yml | 16 ++++++++++++++++ 62 files changed, 935 insertions(+) create mode 100644 adminer.yml create mode 100644 antivir.yml create mode 100644 apt.upgrade.dist.yml create mode 100644 apt.upgrade.yml create mode 100644 audit.yml create mode 100644 build.yml create mode 100644 certbot.webserver.yml create mode 100644 certbot.yml create mode 100644 composer.yml create mode 100644 coturn.yml create mode 100644 database.yml create mode 100644 docker.yml create mode 100644 exec.yml create mode 100644 firewall.yml create mode 100644 froxlor.yml create mode 100644 git.yml create mode 100644 glances.yml create mode 100644 immich.podman.yml create mode 100644 java.yml create mode 100644 jellyfin.yml create mode 100644 keycloak.certbot.webserver.yml create mode 100644 keycloak.yml create mode 100644 mailserver.yml create mode 100644 matomo.yml create mode 100644 mcaptcha.yml create mode 100644 mdm.yml create mode 100644 mediawiki.yml create mode 100644 monit.yml create mode 100644 moodle.yml create mode 100644 n8n.yml create mode 100644 network.yml create mode 100644 nextcloud.yml create mode 100644 nodejs.yml create mode 100644 oauth2proxy.yml create mode 100644 php-docker.yml create mode 100644 php.certbot.webserver.yml create mode 100644 php.database.certbot.webserver.yml create mode 100644 php.database.webserver.yml create mode 100644 php.database.yml create mode 100644 php.webserver.yml create mode 100644 php.yml create mode 100644 portainer.yml create mode 100644 proftpd.yml create mode 100644 redis.yml create mode 100644 semaphore.yml create mode 100644 shell.tmux.yml create mode 100644 shell.zsh.yml create mode 100644 signaling.yml create mode 100644 ssh.yml create mode 100644 sync.yml create mode 100644 system.fetch-files.yml create mode 100644 umami.db.nodejs.git.yml create mode 100644 umami.db.yml create mode 100644 umami.dbexport.yml create mode 100644 umami.dbimport.yml create mode 100644 umami.yml create mode 100644 update-hostname.yml create mode 100644 webmail.yml create mode 100644 webserver.yml create mode 100644 wikijs.yml create mode 100644 wordpress.mailer.yml create mode 100644 wordpress.yml diff --git a/adminer.yml b/adminer.yml new file mode 100644 index 0000000..ad24846 --- /dev/null +++ b/adminer.yml @@ -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 \ No newline at end of file diff --git a/antivir.yml b/antivir.yml new file mode 100644 index 0000000..25c1da4 --- /dev/null +++ b/antivir.yml @@ -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 \ No newline at end of file diff --git a/apt.upgrade.dist.yml b/apt.upgrade.dist.yml new file mode 100644 index 0000000..1b0aa64 --- /dev/null +++ b/apt.upgrade.dist.yml @@ -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 \ No newline at end of file diff --git a/apt.upgrade.yml b/apt.upgrade.yml new file mode 100644 index 0000000..2f44ec9 --- /dev/null +++ b/apt.upgrade.yml @@ -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 \ No newline at end of file diff --git a/audit.yml b/audit.yml new file mode 100644 index 0000000..338d1cc --- /dev/null +++ b/audit.yml @@ -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 \ No newline at end of file diff --git a/build.yml b/build.yml new file mode 100644 index 0000000..387f7f9 --- /dev/null +++ b/build.yml @@ -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 diff --git a/certbot.webserver.yml b/certbot.webserver.yml new file mode 100644 index 0000000..b52ef43 --- /dev/null +++ b/certbot.webserver.yml @@ -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 diff --git a/certbot.yml b/certbot.yml new file mode 100644 index 0000000..512628d --- /dev/null +++ b/certbot.yml @@ -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 diff --git a/composer.yml b/composer.yml new file mode 100644 index 0000000..f1d595f --- /dev/null +++ b/composer.yml @@ -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 diff --git a/coturn.yml b/coturn.yml new file mode 100644 index 0000000..8cba55a --- /dev/null +++ b/coturn.yml @@ -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 diff --git a/database.yml b/database.yml new file mode 100644 index 0000000..b7dc36b --- /dev/null +++ b/database.yml @@ -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 diff --git a/docker.yml b/docker.yml new file mode 100644 index 0000000..6db66c3 --- /dev/null +++ b/docker.yml @@ -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 diff --git a/exec.yml b/exec.yml new file mode 100644 index 0000000..d3c5d88 --- /dev/null +++ b/exec.yml @@ -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 diff --git a/firewall.yml b/firewall.yml new file mode 100644 index 0000000..b09c620 --- /dev/null +++ b/firewall.yml @@ -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 \ No newline at end of file diff --git a/froxlor.yml b/froxlor.yml new file mode 100644 index 0000000..e76b8ed --- /dev/null +++ b/froxlor.yml @@ -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 \ No newline at end of file diff --git a/git.yml b/git.yml new file mode 100644 index 0000000..0fb7fac --- /dev/null +++ b/git.yml @@ -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 diff --git a/glances.yml b/glances.yml new file mode 100644 index 0000000..b0b6834 --- /dev/null +++ b/glances.yml @@ -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 diff --git a/immich.podman.yml b/immich.podman.yml new file mode 100644 index 0000000..2a209dd --- /dev/null +++ b/immich.podman.yml @@ -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 diff --git a/java.yml b/java.yml new file mode 100644 index 0000000..1eb2634 --- /dev/null +++ b/java.yml @@ -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 diff --git a/jellyfin.yml b/jellyfin.yml new file mode 100644 index 0000000..396d68c --- /dev/null +++ b/jellyfin.yml @@ -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 diff --git a/keycloak.certbot.webserver.yml b/keycloak.certbot.webserver.yml new file mode 100644 index 0000000..a873cd0 --- /dev/null +++ b/keycloak.certbot.webserver.yml @@ -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 diff --git a/keycloak.yml b/keycloak.yml new file mode 100644 index 0000000..929c245 --- /dev/null +++ b/keycloak.yml @@ -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 diff --git a/mailserver.yml b/mailserver.yml new file mode 100644 index 0000000..431a839 --- /dev/null +++ b/mailserver.yml @@ -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 diff --git a/matomo.yml b/matomo.yml new file mode 100644 index 0000000..24011ab --- /dev/null +++ b/matomo.yml @@ -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 \ No newline at end of file diff --git a/mcaptcha.yml b/mcaptcha.yml new file mode 100644 index 0000000..d647c73 --- /dev/null +++ b/mcaptcha.yml @@ -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 \ No newline at end of file diff --git a/mdm.yml b/mdm.yml new file mode 100644 index 0000000..3185af7 --- /dev/null +++ b/mdm.yml @@ -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 diff --git a/mediawiki.yml b/mediawiki.yml new file mode 100644 index 0000000..70e8227 --- /dev/null +++ b/mediawiki.yml @@ -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 diff --git a/monit.yml b/monit.yml new file mode 100644 index 0000000..e1f1512 --- /dev/null +++ b/monit.yml @@ -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 \ No newline at end of file diff --git a/moodle.yml b/moodle.yml new file mode 100644 index 0000000..8bc3f50 --- /dev/null +++ b/moodle.yml @@ -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 diff --git a/n8n.yml b/n8n.yml new file mode 100644 index 0000000..98c5aa8 --- /dev/null +++ b/n8n.yml @@ -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 diff --git a/network.yml b/network.yml new file mode 100644 index 0000000..a75ea4a --- /dev/null +++ b/network.yml @@ -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 \ No newline at end of file diff --git a/nextcloud.yml b/nextcloud.yml new file mode 100644 index 0000000..4929336 --- /dev/null +++ b/nextcloud.yml @@ -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 \ No newline at end of file diff --git a/nodejs.yml b/nodejs.yml new file mode 100644 index 0000000..617d058 --- /dev/null +++ b/nodejs.yml @@ -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 diff --git a/oauth2proxy.yml b/oauth2proxy.yml new file mode 100644 index 0000000..6cb801b --- /dev/null +++ b/oauth2proxy.yml @@ -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 diff --git a/php-docker.yml b/php-docker.yml new file mode 100644 index 0000000..b205c89 --- /dev/null +++ b/php-docker.yml @@ -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 diff --git a/php.certbot.webserver.yml b/php.certbot.webserver.yml new file mode 100644 index 0000000..c1cf8fb --- /dev/null +++ b/php.certbot.webserver.yml @@ -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 diff --git a/php.database.certbot.webserver.yml b/php.database.certbot.webserver.yml new file mode 100644 index 0000000..6d7c845 --- /dev/null +++ b/php.database.certbot.webserver.yml @@ -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 diff --git a/php.database.webserver.yml b/php.database.webserver.yml new file mode 100644 index 0000000..7c515cd --- /dev/null +++ b/php.database.webserver.yml @@ -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 diff --git a/php.database.yml b/php.database.yml new file mode 100644 index 0000000..892cd05 --- /dev/null +++ b/php.database.yml @@ -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 diff --git a/php.webserver.yml b/php.webserver.yml new file mode 100644 index 0000000..3d5904a --- /dev/null +++ b/php.webserver.yml @@ -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 diff --git a/php.yml b/php.yml new file mode 100644 index 0000000..5d01653 --- /dev/null +++ b/php.yml @@ -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 diff --git a/portainer.yml b/portainer.yml new file mode 100644 index 0000000..356babe --- /dev/null +++ b/portainer.yml @@ -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 diff --git a/proftpd.yml b/proftpd.yml new file mode 100644 index 0000000..e71f86a --- /dev/null +++ b/proftpd.yml @@ -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 diff --git a/redis.yml b/redis.yml new file mode 100644 index 0000000..d0052e3 --- /dev/null +++ b/redis.yml @@ -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 diff --git a/semaphore.yml b/semaphore.yml new file mode 100644 index 0000000..d89df0c --- /dev/null +++ b/semaphore.yml @@ -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 diff --git a/shell.tmux.yml b/shell.tmux.yml new file mode 100644 index 0000000..06603c7 --- /dev/null +++ b/shell.tmux.yml @@ -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 \ No newline at end of file diff --git a/shell.zsh.yml b/shell.zsh.yml new file mode 100644 index 0000000..0cfaf3b --- /dev/null +++ b/shell.zsh.yml @@ -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 \ No newline at end of file diff --git a/signaling.yml b/signaling.yml new file mode 100644 index 0000000..a7c87d7 --- /dev/null +++ b/signaling.yml @@ -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 diff --git a/ssh.yml b/ssh.yml new file mode 100644 index 0000000..7c096d5 --- /dev/null +++ b/ssh.yml @@ -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 diff --git a/sync.yml b/sync.yml new file mode 100644 index 0000000..83f5d7c --- /dev/null +++ b/sync.yml @@ -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 diff --git a/system.fetch-files.yml b/system.fetch-files.yml new file mode 100644 index 0000000..c6b9db9 --- /dev/null +++ b/system.fetch-files.yml @@ -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 \ No newline at end of file diff --git a/umami.db.nodejs.git.yml b/umami.db.nodejs.git.yml new file mode 100644 index 0000000..2f5416b --- /dev/null +++ b/umami.db.nodejs.git.yml @@ -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 diff --git a/umami.db.yml b/umami.db.yml new file mode 100644 index 0000000..3c322b4 --- /dev/null +++ b/umami.db.yml @@ -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 \ No newline at end of file diff --git a/umami.dbexport.yml b/umami.dbexport.yml new file mode 100644 index 0000000..dbca8a5 --- /dev/null +++ b/umami.dbexport.yml @@ -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 \ No newline at end of file diff --git a/umami.dbimport.yml b/umami.dbimport.yml new file mode 100644 index 0000000..6671db1 --- /dev/null +++ b/umami.dbimport.yml @@ -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 \ No newline at end of file diff --git a/umami.yml b/umami.yml new file mode 100644 index 0000000..95b8c65 --- /dev/null +++ b/umami.yml @@ -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 diff --git a/update-hostname.yml b/update-hostname.yml new file mode 100644 index 0000000..515f91b --- /dev/null +++ b/update-hostname.yml @@ -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 \ No newline at end of file diff --git a/webmail.yml b/webmail.yml new file mode 100644 index 0000000..751a1c8 --- /dev/null +++ b/webmail.yml @@ -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 diff --git a/webserver.yml b/webserver.yml new file mode 100644 index 0000000..39c3463 --- /dev/null +++ b/webserver.yml @@ -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 diff --git a/wikijs.yml b/wikijs.yml new file mode 100644 index 0000000..f457340 --- /dev/null +++ b/wikijs.yml @@ -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 \ No newline at end of file diff --git a/wordpress.mailer.yml b/wordpress.mailer.yml new file mode 100644 index 0000000..a9aa55e --- /dev/null +++ b/wordpress.mailer.yml @@ -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 \ No newline at end of file diff --git a/wordpress.yml b/wordpress.yml new file mode 100644 index 0000000..a909e91 --- /dev/null +++ b/wordpress.yml @@ -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 \ No newline at end of file