Optimized tests für run once

This commit is contained in:
Kevin Veen-Birkenbach 2025-08-12 02:38:37 +02:00
parent 82aaf7ad74
commit 1595a7c4a6
No known key found for this signature in database
GPG Key ID: 44D8F11FD62F878E
148 changed files with 1803 additions and 1147 deletions

View File

@ -1,4 +1,3 @@
---
galaxy_info: galaxy_info:
author: "Kevin Veen-Birkenbach" author: "Kevin Veen-Birkenbach"
description: "Installs caffeine-ng and configures it to autostart for preventing screen sleep on GNOME." description: "Installs caffeine-ng and configures it to autostart for preventing screen sleep on GNOME."
@ -6,12 +5,10 @@ galaxy_info:
license_url: "https://s.veen.world/cncl" license_url: "https://s.veen.world/cncl"
min_ansible_version: "2.4" min_ansible_version: "2.4"
platforms: platforms:
- name: Archlinux - name: Archlinux
versions: versions:
- all - all
galaxy_tags: galaxy_tags:
- caffeine - caffeine
- autostart - autostart
- archlinux - archlinux
dependencies:
- dev-yay

View File

@ -1,9 +1,16 @@
--- - name: Load former meta dependencies once
block:
- name: Include moved dependency 'dev-yay'
include_role:
name: dev-yay
- set_fact:
run_once_desk_gnome_caffeine: true
when: run_once_desk_gnome_caffeine is not defined
- name: Install caffeine - name: Install caffeine
kewlfft.aur.aur: kewlfft.aur.aur:
use: yay use: yay
name: name:
- caffeine-ng - caffeine-ng
become: false become: false
- name: Create autostart directory if it doesn't exist - name: Create autostart directory if it doesn't exist

View File

@ -1,4 +1,3 @@
---
galaxy_info: galaxy_info:
author: "Kevin Veen-Birchenbach" author: "Kevin Veen-Birchenbach"
description: "Installs the qBittorrent torrent client via AUR on Arch Linux." description: "Installs the qBittorrent torrent client via AUR on Arch Linux."
@ -9,15 +8,12 @@ galaxy_info:
Consulting & Coaching Solutions Consulting & Coaching Solutions
https://www.veen.world https://www.veen.world
galaxy_tags: galaxy_tags:
- qbittorrent - qbittorrent
- torrent - torrent
repository: "https://github.com/kevinveenbirkenbach/infinito-nexus" repository: "https://github.com/kevinveenbirkenbach/infinito-nexus"
issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues" issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues"
documentation: "https://github.com/kevinveenbirkenbach/infinito-nexus/tree/main/roles/desk-qbittorrent" documentation: "https://github.com/kevinveenbirkenbach/infinito-nexus/tree/main/roles/desk-qbittorrent"
min_ansible_version: "2.9" min_ansible_version: "2.9"
platforms: platforms:
- name: Archlinux - name: Archlinux
versions: [ all ] versions: [all]
dependencies:
- dev-yay

View File

@ -1,5 +1,13 @@
- name: Load former meta dependencies once
block:
- name: Include moved dependency 'dev-yay'
include_role:
name: dev-yay
- set_fact:
run_once_desk_qbittorrent: true
when: run_once_desk_qbittorrent is not defined
- name: install torrent software - name: install torrent software
kewlfft.aur.aur: kewlfft.aur.aur:
use: yay use: yay
name: name:
- qbittorrent - qbittorrent

View File

@ -1,4 +1,3 @@
---
galaxy_info: galaxy_info:
author: "Kevin Veen-Birkenbach" author: "Kevin Veen-Birkenbach"
description: "Installs the Spotify client." description: "Installs the Spotify client."
@ -10,18 +9,16 @@ galaxy_info:
https://www.veen.world https://www.veen.world
min_ansible_version: "2.9" min_ansible_version: "2.9"
platforms: platforms:
- name: Archlinux - name: Archlinux
versions: versions:
- rolling - rolling
galaxy_tags: galaxy_tags:
- spotify - spotify
- aur - aur
- music - music
- streaming - streaming
- archlinux - archlinux
- client - client
repository: https://github.com/kevinveenbirkenbach/infinito-nexus repository: https://github.com/kevinveenbirkenbach/infinito-nexus
issue_tracker_url: https://github.com/kevinveenbirkenbach/infinito-nexus/issues issue_tracker_url: https://github.com/kevinveenbirkenbach/infinito-nexus/issues
documentation: "https://docs.infinito.nexus/" documentation: "https://docs.infinito.nexus/"
dependencies:
- dev-yay

View File

@ -1,5 +1,13 @@
- name: Load former meta dependencies once
block:
- name: Include moved dependency 'dev-yay'
include_role:
name: dev-yay
- set_fact:
run_once_desk_spotify: true
when: run_once_desk_spotify is not defined
- name: install spotify - name: install spotify
kewlfft.aur.aur: kewlfft.aur.aur:
use: yay use: yay
name: name:
- spotify - spotify

View File

@ -1,4 +1,3 @@
---
galaxy_info: galaxy_info:
author: "Kevin Veen-Birkenbach" author: "Kevin Veen-Birkenbach"
description: "Persistent SSH agent setup for GNOME Wayland sessions with SSH configuration pulled from Git." description: "Persistent SSH agent setup for GNOME Wayland sessions with SSH configuration pulled from Git."
@ -10,21 +9,20 @@ galaxy_info:
https://www.veen.world https://www.veen.world
min_ansible_version: "2.9" min_ansible_version: "2.9"
platforms: platforms:
- name: Archlinux - name: Archlinux
versions: versions:
- rolling - rolling
galaxy_tags: galaxy_tags:
- ssh - ssh
- agent - agent
- systemd - systemd
- gnome - gnome
- wayland - wayland
- archlinux - archlinux
- keepassxc - keepassxc
repository: https://github.com/kevinveenbirkenbach/infinito-nexus repository: https://github.com/kevinveenbirkenbach/infinito-nexus
issue_tracker_url: https://github.com/kevinveenbirkenbach/infinito-nexus/issues issue_tracker_url: https://github.com/kevinveenbirkenbach/infinito-nexus/issues
documentation: "https://docs.infinito.nexus/" documentation: "https://docs.infinito.nexus/"
dependencies: dependencies:
- desk-git - desk-git
- dev-shell

View File

@ -1,3 +1,11 @@
- name: Load former meta dependencies once
block:
- name: Include moved dependency 'dev-shell'
include_role:
name: dev-shell
- set_fact:
run_once_desk_ssh: true
when: run_once_desk_ssh is not defined
- name: pull ssh repository from {{desk_ssh_repository}} - name: pull ssh repository from {{desk_ssh_repository}}
git: git:
repo: "{{desk_ssh_repository}}" repo: "{{desk_ssh_repository}}"

View File

@ -1,4 +1,3 @@
---
galaxy_info: galaxy_info:
author: "Kevin Veen-Birchenbach" author: "Kevin Veen-Birchenbach"
description: "Installs the Zoom video conferencing client via AUR on Arch Linux." description: "Installs the Zoom video conferencing client via AUR on Arch Linux."
@ -9,16 +8,13 @@ galaxy_info:
Consulting & Coaching Solutions Consulting & Coaching Solutions
https://www.veen.world https://www.veen.world
galaxy_tags: galaxy_tags:
- zoom - zoom
- video - video
- conferencing - conferencing
repository: "https://github.com/kevinveenbirkenbach/infinito-nexus" repository: "https://github.com/kevinveenbirkenbach/infinito-nexus"
issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues" issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues"
documentation: "https://github.com/kevinveenbirkenbach/infinito-nexus/tree/main/roles/desk-zoom" documentation: "https://github.com/kevinveenbirkenbach/infinito-nexus/tree/main/roles/desk-zoom"
min_ansible_version: "2.9" min_ansible_version: "2.9"
platforms: platforms:
- name: Archlinux - name: Archlinux
versions: [ all ] versions: [all]
dependencies:
- dev-yay

View File

@ -1,6 +1,14 @@
- name: Load former meta dependencies once
block:
- name: Include moved dependency 'dev-yay'
include_role:
name: dev-yay
- set_fact:
run_once_desk_zoom: true
when: run_once_desk_zoom is not defined
- name: install video conference software - name: install video conference software
kewlfft.aur.aur: kewlfft.aur.aur:
use: yay use: yay
name: name:
- zoom - zoom
become: false become: false

View File

@ -1,4 +1,3 @@
---
galaxy_info: galaxy_info:
author: "Kevin Veen-Birkenbach" author: "Kevin Veen-Birkenbach"
description: "Installs the python-pip package to provide the Python package manager, ensuring that Python packages can be installed reliably on the target system." description: "Installs the python-pip package to provide the Python package manager, ensuring that Python packages can be installed reliably on the target system."
@ -10,17 +9,15 @@ galaxy_info:
https://www.veen.world https://www.veen.world
min_ansible_version: "2.9" min_ansible_version: "2.9"
platforms: platforms:
- name: Archlinux - name: Archlinux
versions: versions:
- rolling - rolling
galaxy_tags: galaxy_tags:
- python - python
- pip - pip
- package - package
- installation - installation
- automation - automation
repository: "https://github.com/kevinveenbirkenbach/infinito-nexus" repository: "https://github.com/kevinveenbirkenbach/infinito-nexus"
issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues" issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues"
documentation: "https://docs.infinito.nexus" documentation: "https://docs.infinito.nexus"
dependencies:
- dev-gcc

View File

@ -1,4 +1,11 @@
--- - name: Load former meta dependencies once
block:
- name: Include moved dependency 'dev-gcc'
include_role:
name: dev-gcc
- set_fact:
run_once_dev_python_pip: true
when: run_once_dev_python_pip is not defined
- name: python pip install - name: python pip install
community.general.pacman: community.general.pacman:
name: python-pip name: python-pip

View File

@ -1,4 +1,3 @@
---
galaxy_info: galaxy_info:
author: "Kevin Veen-Birkenbach" author: "Kevin Veen-Birkenbach"
description: "Installs the AUR helper yay and configures an aur_builder user with appropriate sudo privileges to facilitate AUR package management on Arch Linux systems." description: "Installs the AUR helper yay and configures an aur_builder user with appropriate sudo privileges to facilitate AUR package management on Arch Linux systems."
@ -10,20 +9,16 @@ galaxy_info:
https://www.veen.world https://www.veen.world
min_ansible_version: "2.9" min_ansible_version: "2.9"
platforms: platforms:
- name: Archlinux - name: Archlinux
versions: versions:
- rolling - rolling
galaxy_tags: galaxy_tags:
- aur - aur
- yay - yay
- archlinux - archlinux
- package-management - package-management
repository: "https://github.com/kevinveenbirkenbach/infinito-nexus" repository: "https://github.com/kevinveenbirkenbach/infinito-nexus"
issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues" issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues"
documentation: "https://docs.infinito.nexus" documentation: "https://docs.infinito.nexus"
logo: logo:
class: "fas fa-archive" class: "fas fa-archive"
dependencies:
- dev-fakeroot
- dev-git
- dev-base-devel

View File

@ -1,8 +1,20 @@
- name: Load former meta dependencies once
block:
- name: Include moved dependencies
include_role:
name: '{{ item }}'
loop:
- dev-fakeroot
- dev-git
- dev-base-devel
- set_fact:
run_once_dev_yay: true
when: run_once_dev_yay is not defined
- name: install yay - name: install yay
community.general.pacman: community.general.pacman:
name: name:
- base-devel - base-devel
- patch - patch
state: present state: present
- name: Create the `aur_builder` user - name: Create the `aur_builder` user

View File

@ -1,4 +1,3 @@
---
galaxy_info: galaxy_info:
author: "Kevin Veen-Birkenbach" author: "Kevin Veen-Birkenbach"
description: "Manages Docker Compose project structure and execution logic on Arch Linux." description: "Manages Docker Compose project structure and execution logic on Arch Linux."
@ -10,19 +9,17 @@ galaxy_info:
https://www.veen.world https://www.veen.world
min_ansible_version: "2.9" min_ansible_version: "2.9"
platforms: platforms:
- name: Archlinux - name: Archlinux
versions: versions:
- rolling - rolling
galaxy_tags: galaxy_tags:
- docker - docker
- compose - compose
- container - container
- infrastructure - infrastructure
- devops - devops
- automation - automation
- archlinux - archlinux
repository: https://github.com/kevinveenbirkenbach/infinito-nexus repository: https://github.com/kevinveenbirkenbach/infinito-nexus
issue_tracker_url: https://github.com/kevinveenbirkenbach/infinito-nexus/issues issue_tracker_url: https://github.com/kevinveenbirkenbach/infinito-nexus/issues
documentation: "https://docs.infinito.nexus/" documentation: "https://docs.infinito.nexus/"
dependencies:
- docker-container # Necessary for template use

View File

@ -1,5 +1,11 @@
# run_once_docker_compose: deactivate - name: Load former meta dependencies once
block:
- name: Include moved dependency 'docker-container'
include_role:
name: docker-container
- set_fact:
run_once_docker_compose: true
when: run_once_docker_compose is not defined
- name: "Load variables from {{ docker_compose_variable_file }} for whole play" - name: "Load variables from {{ docker_compose_variable_file }} for whole play"
include_vars: "{{ docker_compose_variable_file }}" include_vars: "{{ docker_compose_variable_file }}"
@ -21,10 +27,10 @@
when: docker_pull_git_repository | bool when: docker_pull_git_repository | bool
- block: - block:
- name: "Include file management routines for '{{application_id}}'." - name: "Include file management routines for '{{application_id}}'."
include_tasks: "03_files.yml" include_tasks: "03_files.yml"
- name: "Ensure that {{ docker_compose.directories.instance }} is up" - name: "Ensure that {{ docker_compose.directories.instance }} is up"
include_tasks: "04_ensure_up.yml" include_tasks: "04_ensure_up.yml"
when: not docker_compose_skipp_file_creation | bool when: not docker_compose_skipp_file_creation | bool
- name: "flush database, docker and proxy for '{{ application_id }}'" - name: "flush database, docker and proxy for '{{ application_id }}'"

View File

@ -1,4 +1,3 @@
---
galaxy_info: galaxy_info:
author: "Kevin Veen-Birchenbach" author: "Kevin Veen-Birchenbach"
description: "Provides shared Jinja2 snippets for Docker Compose service definitions (base, networks, healthchecks, depends_on)." description: "Provides shared Jinja2 snippets for Docker Compose service definitions (base, networks, healthchecks, depends_on)."
@ -9,15 +8,13 @@ galaxy_info:
Consulting & Coaching Solutions Consulting & Coaching Solutions
https://www.veen.world https://www.veen.world
galaxy_tags: galaxy_tags:
- docker - docker
- compose - compose
- jinja2 - jinja2
repository: "https://github.com/kevinveenbirkenbach/infinito-nexus" repository: "https://github.com/kevinveenbirkenbach/infinito-nexus"
issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues" issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues"
documentation: "https://github.com/kevinveenbirkenbach/infinito-nexus/tree/main/roles/docker-container" documentation: "https://github.com/kevinveenbirkenbach/infinito-nexus/tree/main/roles/docker-container"
min_ansible_version: "2.9" min_ansible_version: "2.9"
platforms: platforms:
- name: Any - name: Any
versions: [ all ] versions: [all]
dependencies:
- docker-core

View File

@ -0,0 +1,8 @@
- name: Load former meta dependencies once
block:
- name: Include moved dependency 'docker-core'
include_role:
name: docker-core
- set_fact:
run_once_docker_container: true
when: run_once_docker_container is not defined

View File

@ -1,4 +1,3 @@
---
galaxy_info: galaxy_info:
author: "Kevin Veen-Birchenbach" author: "Kevin Veen-Birchenbach"
description: "Installs Epson multifunction printer drivers and scanning utilities (escpr, imagescan) via Pacman and AUR on Arch Linux." description: "Installs Epson multifunction printer drivers and scanning utilities (escpr, imagescan) via Pacman and AUR on Arch Linux."
@ -9,16 +8,13 @@ galaxy_info:
Consulting & Coaching Solutions Consulting & Coaching Solutions
https://www.veen.world https://www.veen.world
galaxy_tags: galaxy_tags:
- epson - epson
- printer - printer
- scanner - scanner
repository: "https://github.com/kevinveenbirkenbach/infinito-nexus" repository: "https://github.com/kevinveenbirkenbach/infinito-nexus"
issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues" issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues"
documentation: "https://github.com/kevinveenbirkenbach/infinito-nexus/tree/main/roles/drv-epson-multiprinter" documentation: "https://github.com/kevinveenbirkenbach/infinito-nexus/tree/main/roles/drv-epson-multiprinter"
min_ansible_version: "2.9" min_ansible_version: "2.9"
platforms: platforms:
- name: Archlinux - name: Archlinux
versions: [ all ] versions: [all]
dependencies:
- dev-yay

View File

@ -1,11 +1,19 @@
- name: Load former meta dependencies once
block:
- name: Include moved dependency 'dev-yay'
include_role:
name: dev-yay
- set_fact:
run_once_drv_epson_multiprinter: true
when: run_once_drv_epson_multiprinter is not defined
- name: install AUR packages for epson - name: install AUR packages for epson
kewlfft.aur.aur: kewlfft.aur.aur:
use: yay use: yay
name: name:
- epson-printer-utility - epson-printer-utility
- imagescan-plugin-networkscan - imagescan-plugin-networkscan
- epson-inkjet-printer-escpr - epson-inkjet-printer-escpr
- epson-inkjet-printer-escpr2 - epson-inkjet-printer-escpr2
become: false become: false
- name: install imagescan - name: install imagescan
community.general.pacman: community.general.pacman:

View File

@ -4,9 +4,6 @@ galaxy_info:
description: "Ansible role to set up dynamic keyboard color change on MSI laptops" description: "Ansible role to set up dynamic keyboard color change on MSI laptops"
min_ansible_version: 2.9 min_ansible_version: 2.9
platforms: platforms:
- name: Linux - name: Linux
versions: versions:
- all - all
dependencies:
- dev-yay
- sys-alm-compose

View File

@ -1,9 +1,19 @@
--- - name: Load former meta dependencies once
block:
- name: Include moved dependencies
include_role:
name: '{{ item }}'
loop:
- dev-yay
- sys-alm-compose
- set_fact:
run_once_drv_msi_keyboard_color: true
when: run_once_drv_msi_keyboard_color is not defined
- name: Install MSI packages - name: Install MSI packages
kewlfft.aur.aur: kewlfft.aur.aur:
use: yay use: yay
name: name:
- msi-perkeyrgb - msi-perkeyrgb
- name: Copy keyboard_color.sh script - name: Copy keyboard_color.sh script
copy: copy:
@ -29,5 +39,5 @@
include_role: include_role:
name: sys-timer name: sys-timer
vars: vars:
on_calendar: "{{on_calendar_msi_keyboard_color}}" on_calendar: "{{on_calendar_msi_keyboard_color}}"
persistent: "true" persistent: "true"

View File

@ -9,16 +9,14 @@ galaxy_info:
https://www.veen.world https://www.veen.world
min_ansible_version: "2.9" min_ansible_version: "2.9"
platforms: platforms:
- name: Archlinux - name: Archlinux
versions: versions:
- rolling - rolling
galaxy_tags: galaxy_tags:
- package - package
- update - update
- archlinux - archlinux
- infinito - infinito
repository: https://github.com/kevinveenbirkenbach/package-manager repository: https://github.com/kevinveenbirkenbach/package-manager
issue_tracker_url: https://github.com/kevinveenbirkenbach/package-manager/issues issue_tracker_url: https://github.com/kevinveenbirkenbach/package-manager/issues
documentation: https://github.com/kevinveenbirkenbach/package-manager documentation: https://github.com/kevinveenbirkenbach/package-manager
dependencies:
- pkgmgr

View File

@ -1,3 +1,11 @@
- name: Load former meta dependencies once
block:
- name: Include moved dependency 'pkgmgr'
include_role:
name: pkgmgr
- set_fact:
run_once_pkgmgr_install: true
when: run_once_pkgmgr_install is not defined
- name: update pkgmgr - name: update pkgmgr
shell: | shell: |
source ~/.venvs/pkgmgr/bin/activate source ~/.venvs/pkgmgr/bin/activate

View File

@ -1,4 +1,3 @@
---
galaxy_info: galaxy_info:
author: "Kevin Veen-Birkenbach" author: "Kevin Veen-Birkenbach"
description: "Automates the installation of Kevin's Package Manager — a tool for managing multiple repositories and automating Git operations." description: "Automates the installation of Kevin's Package Manager — a tool for managing multiple repositories and automating Git operations."
@ -10,29 +9,25 @@ galaxy_info:
https://www.veen.world https://www.veen.world
min_ansible_version: "2.9" min_ansible_version: "2.9"
platforms: platforms:
- name: Debian - name: Debian
versions: versions:
- stretch - stretch
- buster - buster
- bullseye - bullseye
- name: Ubuntu - name: Ubuntu
versions: versions:
- bionic - bionic
- focal - focal
- jammy - jammy
- name: Archlinux - name: Archlinux
versions: versions:
- rolling - rolling
galaxy_tags: galaxy_tags:
- pkgmgr - pkgmgr
- automation - automation
- git - git
- repositories - repositories
- development - development
repository: https://github.com/kevinveenbirkenbach/package-manager repository: https://github.com/kevinveenbirkenbach/package-manager
issue_tracker_url: https://github.com/kevinveenbirkenbach/package-manager/issues issue_tracker_url: https://github.com/kevinveenbirkenbach/package-manager/issues
documentation: https://github.com/kevinveenbirkenbach/package-manager documentation: https://github.com/kevinveenbirkenbach/package-manager
dependencies:
- dev-git
- dev-make
- dev-python-yaml

View File

@ -1,3 +1,15 @@
- name: Load former meta dependencies once
block:
- name: Include moved dependencies
include_role:
name: '{{ item }}'
loop:
- dev-git
- dev-make
- dev-python-yaml
- set_fact:
run_once_pkgmgr: true
when: run_once_pkgmgr is not defined
- name: Ensure GitHub host key is in known_hosts - name: Ensure GitHub host key is in known_hosts
known_hosts: known_hosts:
path: "~/.ssh/known_hosts" path: "~/.ssh/known_hosts"

View File

@ -1,4 +1,3 @@
---
galaxy_info: galaxy_info:
author: "Kevin Veen-Birkenbach" author: "Kevin Veen-Birkenbach"
description: "Automated domain provisioning (TLS, vHost, OAuth2) for Nginx." description: "Automated domain provisioning (TLS, vHost, OAuth2) for Nginx."
@ -10,18 +9,16 @@ galaxy_info:
https://www.veen.world https://www.veen.world
min_ansible_version: "2.9" min_ansible_version: "2.9"
platforms: platforms:
- name: Archlinux - name: Archlinux
versions: versions:
- rolling - rolling
galaxy_tags: galaxy_tags:
- nginx - nginx
- tls - tls
- letsencrypt - letsencrypt
- oauth2 - oauth2
- automation - automation
- archlinux - archlinux
repository: https://github.com/kevinveenbirkenbach/infinito-nexus repository: https://github.com/kevinveenbirkenbach/infinito-nexus
issue_tracker_url: https://github.com/kevinveenbirkenbach/infinito-nexus/issues issue_tracker_url: https://github.com/kevinveenbirkenbach/infinito-nexus/issues
documentation: "https://docs.infinito.nexus/" documentation: "https://docs.infinito.nexus/"
dependencies:
- srv-proxy-7-4-core

View File

@ -1,5 +1,11 @@
# run_once_srv_proxy_6_6_domain: deactivated - name: Load former meta dependencies once
block:
- name: Include moved dependency 'srv-proxy-7-4-core'
include_role:
name: srv-proxy-7-4-core
- set_fact:
run_once_srv_proxy_6_6_domain: true
when: run_once_srv_proxy_6_6_domain is not defined
- include_tasks: "01_cloudflare.yml" - include_tasks: "01_cloudflare.yml"
when: dns_provider == "cloudflare" when: dns_provider == "cloudflare"
@ -19,18 +25,18 @@
notify: restart openresty notify: restart openresty
- block: - block:
- name: "Check if {{ domains | get_domain(application_id) }} is reachable (only if config unchanged)" - name: "Check if {{ domains | get_domain(application_id) }} is reachable (only if config unchanged)"
uri: uri:
url: "{{ domains | get_url(application_id, WEB_PROTOCOL) }}" url: "{{ domains | get_url(application_id, WEB_PROTOCOL) }}"
register: site_check register: site_check
failed_when: false failed_when: false
changed_when: false changed_when: false
- name: Restart nginx if site is down - name: Restart nginx if site is down
command: command:
cmd: "true" cmd: "true"
notify: restart openresty notify: restart openresty
when: when:
- site_check.status is defined - site_check.status is defined
- not site_check.status in [200,301,302] - not site_check.status in [200,301,302]
when: not nginx_conf.changed when: not nginx_conf.changed

View File

@ -1,4 +1,3 @@
---
galaxy_info: galaxy_info:
author: "Kevin Veen-Birchenbach" author: "Kevin Veen-Birchenbach"
description: "Deploys Lets Encrypt certificates into Docker Compose Nginx setups via systemd service and timer." description: "Deploys Lets Encrypt certificates into Docker Compose Nginx setups via systemd service and timer."
@ -9,17 +8,14 @@ galaxy_info:
Consulting & Coaching Solutions Consulting & Coaching Solutions
https://www.veen.world https://www.veen.world
galaxy_tags: galaxy_tags:
- nginx - nginx
- letsencrypt - letsencrypt
- docker - docker
- systemd - systemd
repository: "https://github.com/kevinveenbirkenbach/infinito-nexus" repository: "https://github.com/kevinveenbirkenbach/infinito-nexus"
issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues" issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues"
documentation: "https://github.com/kevinveenbirkenbach/infinito-nexus/tree/main/roles/srv-proxy-6-6-tls-deploy" documentation: "https://github.com/kevinveenbirkenbach/infinito-nexus/tree/main/roles/srv-proxy-6-6-tls-deploy"
min_ansible_version: "2.9" min_ansible_version: "2.9"
platforms: platforms:
- name: Any - name: Any
versions: [ all ] versions: [all]
dependencies:
- sys-alm-compose

View File

@ -1,3 +1,11 @@
- name: Load former meta dependencies once
block:
- name: Include moved dependency 'sys-alm-compose'
include_role:
name: sys-alm-compose
- set_fact:
run_once_srv_proxy_6_6_tls_deploy: true
when: run_once_srv_proxy_6_6_tls_deploy is not defined
- name: add srv-proxy-6-6-tls-deploy.sh - name: add srv-proxy-6-6-tls-deploy.sh
template: template:
src: "srv-proxy-6-6-tls-deploy.sh.j2" src: "srv-proxy-6-6-tls-deploy.sh.j2"
@ -7,14 +15,14 @@
- name: "create {{cert_mount_directory}}" - name: "create {{cert_mount_directory}}"
file: file:
path: "{{cert_mount_directory}}" path: "{{cert_mount_directory}}"
state: directory state: directory
mode: 0755 mode: 0755
notify: restart srv-proxy-6-6-tls-deploy.infinito.service notify: restart srv-proxy-6-6-tls-deploy.infinito.service
- name: configure srv-proxy-6-6-tls-deploy.infinito.service - name: configure srv-proxy-6-6-tls-deploy.infinito.service
template: template:
src: "srv-proxy-6-6-tls-deploy.service.j2" src: "srv-proxy-6-6-tls-deploy.service.j2"
dest: "/etc/systemd/system/srv-proxy-6-6-tls-deploy.{{application_id}}.infinito.service" dest: "/etc/systemd/system/srv-proxy-6-6-tls-deploy.{{application_id}}.infinito.service"
notify: restart srv-proxy-6-6-tls-deploy.infinito.service notify: restart srv-proxy-6-6-tls-deploy.infinito.service
@ -22,9 +30,9 @@
include_role: include_role:
name: sys-timer name: sys-timer
vars: vars:
on_calendar: "{{on_calendar_deploy_certificates}}" on_calendar: "{{on_calendar_deploy_certificates}}"
service_name: "srv-proxy-6-6-tls-deploy.{{application_id}}" service_name: "srv-proxy-6-6-tls-deploy.{{application_id}}"
persistent: "true" persistent: "true"
- name: run the run_once_srv_proxy_6_6_tls_deploy tasks once - name: run the run_once_srv_proxy_6_6_tls_deploy tasks once
set_fact: set_fact:

View File

@ -1,4 +1,3 @@
---
galaxy_info: galaxy_info:
author: "Kevin Veen-Birkenbach" author: "Kevin Veen-Birkenbach"
description: "Nginx reverse proxy front-end for local Docker applications." description: "Nginx reverse proxy front-end for local Docker applications."
@ -10,19 +9,16 @@ galaxy_info:
https://www.veen.world https://www.veen.world
min_ansible_version: "2.9" min_ansible_version: "2.9"
platforms: platforms:
- name: Archlinux - name: Archlinux
versions: versions:
- rolling - rolling
galaxy_tags: galaxy_tags:
- nginx - nginx
- docker - docker
- reverse_proxy - reverse_proxy
- web - web
- automation - automation
- archlinux - archlinux
repository: https://github.com/kevinveenbirkenbach/infinito-nexus repository: https://github.com/kevinveenbirkenbach/infinito-nexus
issue_tracker_url: https://github.com/kevinveenbirkenbach/infinito-nexus/issues issue_tracker_url: https://github.com/kevinveenbirkenbach/infinito-nexus/issues
documentation: "https://docs.infinito.nexus/" documentation: "https://docs.infinito.nexus/"
dependencies:
- srv-web-7-6-https
- srv-web-7-4-core

View File

@ -0,0 +1,11 @@
- name: Load former meta dependencies once
block:
- name: Include moved dependencies
include_role:
name: '{{ item }}'
loop:
- srv-web-7-6-https
- srv-web-7-4-core
- set_fact:
run_once_srv_proxy_7_4_core: true
when: run_once_srv_proxy_7_4_core is not defined

View File

@ -1,4 +1,3 @@
---
galaxy_info: galaxy_info:
author: "Kevin Veen-Birkenbach" author: "Kevin Veen-Birkenbach"
description: | description: |
@ -11,21 +10,19 @@ galaxy_info:
https://www.veen.world https://www.veen.world
min_ansible_version: "2.9" min_ansible_version: "2.9"
platforms: platforms:
- name: Archlinux - name: Archlinux
versions: versions:
- rolling - rolling
galaxy_tags: galaxy_tags:
- nginx - nginx
- certbot - certbot
- letsencrypt - letsencrypt
- ssl - ssl
- tls - tls
- acme - acme
- https - https
- wildcard - wildcard
- automation - automation
repository: "https://github.com/kevinveenbirkenbach/infinito-nexus" repository: "https://github.com/kevinveenbirkenbach/infinito-nexus"
issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues" issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues"
documentation: "https://docs.infinito.nexus" documentation: "https://docs.infinito.nexus"
dependencies:
- srv-web-7-6-https

View File

@ -1,5 +1,11 @@
# run_once_srv_web_6_6_tls_core: deactivated - name: Load former meta dependencies once
block:
- name: Include moved dependency 'srv-web-7-6-https'
include_role:
name: srv-web-7-6-https
- set_fact:
run_once_srv_web_6_6_tls_core: true
when: run_once_srv_web_6_6_tls_core is not defined
- name: "Include flavor '{{ certbot_flavor }}' for '{{ domain }}'" - name: "Include flavor '{{ certbot_flavor }}' for '{{ domain }}'"
include_tasks: "{{ role_path }}/tasks/flavors/{{ certbot_flavor }}.yml" include_tasks: "{{ role_path }}/tasks/flavors/{{ certbot_flavor }}.yml"

View File

@ -1,4 +1,3 @@
---
galaxy_info: galaxy_info:
author: "Kevin Veen-Birkenbach" author: "Kevin Veen-Birkenbach"
description: | description: |
@ -11,23 +10,20 @@ galaxy_info:
https://www.veen.world https://www.veen.world
min_ansible_version: "2.9" min_ansible_version: "2.9"
platforms: platforms:
- name: Archlinux - name: Archlinux
versions: versions:
- rolling - rolling
galaxy_tags: galaxy_tags:
- nginx - nginx
- certbot - certbot
- ssl - ssl
- tls - tls
- letsencrypt - letsencrypt
- https - https
- systemd - systemd
- automation - automation
repository: "https://github.com/kevinveenbirkenbach/infinito-nexus" repository: "https://github.com/kevinveenbirkenbach/infinito-nexus"
issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues" issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues"
documentation: "https://docs.infinito.nexus" documentation: "https://docs.infinito.nexus"
dependencies: dependencies:
- srv-web-7-7-certbot - sys-cln-certs
- srv-web-7-4-core
- sys-alm-compose
- sys-cln-certs

View File

@ -1,12 +1,24 @@
- name: Load former meta dependencies once
block:
- name: Include moved dependencies
include_role:
name: '{{ item }}'
loop:
- srv-web-7-7-certbot
- srv-web-7-4-core
- sys-alm-compose
- set_fact:
run_once_srv_web_6_6_tls_renew: true
when: run_once_srv_web_6_6_tls_renew is not defined
- name: install certbot - name: install certbot
community.general.pacman: community.general.pacman:
name: name:
- certbot-nginx - certbot-nginx
state: present state: present
- name: configure srv-web-6-6-tls-renew.infinito.service - name: configure srv-web-6-6-tls-renew.infinito.service
template: template:
src: srv-web-6-6-tls-renew.service.j2 src: srv-web-6-6-tls-renew.service.j2
dest: /etc/systemd/system/srv-web-6-6-tls-renew.infinito.service dest: /etc/systemd/system/srv-web-6-6-tls-renew.infinito.service
notify: reload certbot service notify: reload certbot service
@ -18,5 +30,5 @@
include_role: include_role:
name: sys-timer name: sys-timer
vars: vars:
on_calendar: "{{on_calendar_renew_lets_encrypt_certificates}}" on_calendar: "{{on_calendar_renew_lets_encrypt_certificates}}"
persistent: "true" persistent: "true"

View File

@ -9,20 +9,16 @@ galaxy_info:
license_url: "https://s.veen.world/cncl" license_url: "https://s.veen.world/cncl"
min_ansible_version: "2.9" min_ansible_version: "2.9"
platforms: platforms:
- name: Archlinux - name: Archlinux
versions: versions:
- rolling - rolling
galaxy_tags: galaxy_tags:
- nginx - nginx
- https - https
- tls - tls
- letsencrypt - letsencrypt
- security - security
- automation - automation
repository: "https://github.com/kevinveenbirkenbach/infinito-nexus" repository: "https://github.com/kevinveenbirkenbach/infinito-nexus"
documentation: "https://docs.infinito.nexus" documentation: "https://docs.infinito.nexus"
issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues" issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues"
dependencies:
- srv-web-7-4-core
- sys-cln-domains
- srv-web-7-7-letsencrypt

View File

@ -0,0 +1,12 @@
- name: Load former meta dependencies once
block:
- name: Include moved dependencies
include_role:
name: '{{ item }}'
loop:
- srv-web-7-4-core
- sys-cln-domains
- srv-web-7-7-letsencrypt
- set_fact:
run_once_srv_web_7_6_https: true
when: run_once_srv_web_7_6_https is not defined

View File

@ -1,4 +1,3 @@
---
galaxy_info: galaxy_info:
author: "Kevin Veen-Birkenbach" author: "Kevin Veen-Birkenbach"
description: "Core role for Nginx HTML injection of Matomo, theming, iFrame and JS snippets based on application feature flags." description: "Core role for Nginx HTML injection of Matomo, theming, iFrame and JS snippets based on application feature flags."
@ -9,19 +8,15 @@ galaxy_info:
Consulting & Coaching Solutions Consulting & Coaching Solutions
https://www.veen.world https://www.veen.world
galaxy_tags: galaxy_tags:
- nginx - nginx
- injector - injector
- matomo - matomo
- theming - theming
repository: "https://github.com/kevinveenbirkenbach/infinito-nexus" repository: "https://github.com/kevinveenbirkenbach/infinito-nexus"
issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues" issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues"
documentation: "https://github.com/kevinveenbirkenbach/infinito-nexus/tree/main/roles/srv-web-7-7-inj-compose" documentation: "https://github.com/kevinveenbirkenbach/infinito-nexus/tree/main/roles/srv-web-7-7-inj-compose"
min_ansible_version: "2.9" min_ansible_version: "2.9"
platforms: platforms:
- name: Any - name: Any
versions: versions:
- all - all
dependencies:
# The injections are called in the script. Keep the logic there.
- srv-web-7-4-core

View File

@ -1,13 +1,19 @@
# run_once_srv_web_7_7_inj_compose: deactivated - name: Load former meta dependencies once
block:
- name: Include moved dependency 'srv-web-7-4-core'
include_role:
name: srv-web-7-4-core
- set_fact:
run_once_srv_web_7_7_inj_compose: true
when: run_once_srv_web_7_7_inj_compose is not defined
- name: Set inj_enabled dictionary - name: Set inj_enabled dictionary
set_fact: set_fact:
inj_enabled: inj_enabled:
javascript: "{{ applications | get_app_conf(application_id, 'features.javascript', False) }}" javascript: "{{ applications | get_app_conf(application_id, 'features.javascript', False) }}"
logout: "{{ (applications | get_app_conf(application_id, 'features.logout', False) or domain == primary_domain) }}" logout: "{{ (applications | get_app_conf(application_id, 'features.logout', False) or domain == primary_domain) }}"
css: "{{ applications | get_app_conf(application_id, 'features.css', False) }}" css: "{{ applications | get_app_conf(application_id, 'features.css', False) }}"
matomo: "{{ applications | get_app_conf(application_id, 'features.matomo', False) }}" matomo: "{{ applications | get_app_conf(application_id, 'features.matomo', False) }}"
port_ui: "{{ applications | get_app_conf(application_id, 'features.port-ui-desktop', False) }}" port_ui: "{{ applications | get_app_conf(application_id, 'features.port-ui-desktop', False) }}"
- name: "Load CDN for {{domain}}" - name: "Load CDN for {{domain}}"
include_role: include_role:
@ -15,15 +21,15 @@
public: false public: false
# ATM just the Logout is using the CDN. # ATM just the Logout is using the CDN.
when: when:
- inj_enabled.logout - inj_enabled.logout
- application_id != 'web-svc-cdn' - application_id != 'web-svc-cdn'
- run_once_web_svc_cdn is not defined - run_once_web_svc_cdn is not defined
- name: Overwritte CDN handlers with neutral handlers - name: Overwritte CDN handlers with neutral handlers
ansible.builtin.include_tasks: "{{ playbook_dir }}/tasks/utils/load_handlers.yml" ansible.builtin.include_tasks: "{{ playbook_dir }}/tasks/utils/load_handlers.yml"
loop: loop:
- svc-prx-openresty - svc-prx-openresty
- docker-compose - docker-compose
loop_control: loop_control:
label: "{{ item }}" label: "{{ item }}"
vars: vars:
@ -33,17 +39,17 @@
set_fact: set_fact:
inj_enabled: inj_enabled:
javascript: "{{ applications | get_app_conf(application_id, 'features.javascript', False) }}" javascript: "{{ applications | get_app_conf(application_id, 'features.javascript', False) }}"
logout: "{{ (applications | get_app_conf(application_id, 'features.logout', False) or domain == primary_domain) }}" logout: "{{ (applications | get_app_conf(application_id, 'features.logout', False) or domain == primary_domain) }}"
css: "{{ applications | get_app_conf(application_id, 'features.css', False) }}" css: "{{ applications | get_app_conf(application_id, 'features.css', False) }}"
matomo: "{{ applications | get_app_conf(application_id, 'features.matomo', False) }}" matomo: "{{ applications | get_app_conf(application_id, 'features.matomo', False) }}"
port_ui: "{{ applications | get_app_conf(application_id, 'features.port-ui-desktop', False) }}" port_ui: "{{ applications | get_app_conf(application_id, 'features.port-ui-desktop', False) }}"
- name: "Activate Corporate CSS for {{domain}}" - name: "Activate Corporate CSS for {{domain}}"
include_role: include_role:
name: srv-web-7-7-inj-css name: srv-web-7-7-inj-css
when: when:
- inj_enabled.css - inj_enabled.css
- run_once_srv_web_7_7_inj_css is not defined - run_once_srv_web_7_7_inj_css is not defined
- name: "Activate Matomo Tracking for {{domain}}" - name: "Activate Matomo Tracking for {{domain}}"
include_role: include_role:

View File

@ -1,4 +1,3 @@
---
galaxy_info: galaxy_info:
author: "Kevin Veen-Birkenbach" author: "Kevin Veen-Birkenbach"
description: "Global CSS injection for Nginx-based apps using dynamic colorschemes." description: "Global CSS injection for Nginx-based apps using dynamic colorschemes."
@ -10,20 +9,18 @@ galaxy_info:
https://www.veen.world https://www.veen.world
min_ansible_version: "2.9" min_ansible_version: "2.9"
platforms: platforms:
- name: Archlinux - name: Archlinux
versions: versions:
- rolling - rolling
galaxy_tags: galaxy_tags:
- nginx - nginx
- css - css
- colors - colors
- bootstrap - bootstrap
- theming - theming
- dynamic - dynamic
- frontend - frontend
- global - global
repository: https://github.com/kevinveenbirkenbach/infinito-nexus repository: https://github.com/kevinveenbirkenbach/infinito-nexus
issue_tracker_url: https://github.com/kevinveenbirkenbach/infinito-nexus/issues issue_tracker_url: https://github.com/kevinveenbirkenbach/infinito-nexus/issues
documentation: "https://docs.infinito.nexus/" documentation: "https://docs.infinito.nexus/"
dependencies:
- srv-web-7-4-core

View File

@ -1,3 +1,11 @@
- name: Load former meta dependencies once
block:
- name: Include moved dependency 'srv-web-7-4-core'
include_role:
name: srv-web-7-4-core
- set_fact:
run_once_srv_web_7_7_inj_css: true
when: run_once_srv_web_7_7_inj_css is not defined
- name: Generate color palette with colorscheme-generator - name: Generate color palette with colorscheme-generator
set_fact: set_fact:
color_palette: "{{ lookup('colorscheme', global_css_base_color, count=global_css_count, shades=global_css_shades) }}" color_palette: "{{ lookup('colorscheme', global_css_base_color, count=global_css_count, shades=global_css_shades) }}"

View File

@ -1,4 +1,3 @@
---
galaxy_info: galaxy_info:
author: "Kevin Veen-Birkenbach" author: "Kevin Veen-Birkenbach"
description: "Injects a custom JavaScript snippet into Nginx-served HTML responses via sub_filter." description: "Injects a custom JavaScript snippet into Nginx-served HTML responses via sub_filter."
@ -10,19 +9,17 @@ galaxy_info:
license_url: "https://s.veen.world/cncl" license_url: "https://s.veen.world/cncl"
min_ansible_version: "2.9" min_ansible_version: "2.9"
platforms: platforms:
- name: Archlinux - name: Archlinux
versions: versions:
- rolling - rolling
galaxy_tags: galaxy_tags:
- nginx - nginx
- javascript - javascript
- csp - csp
- sub_filter - sub_filter
- injection - injection
- global - global
repository: "https://github.com/kevinveenbirkenbach/infinito-nexus" repository: "https://github.com/kevinveenbirkenbach/infinito-nexus"
documentation: "https://docs.infinito.nexus" documentation: "https://docs.infinito.nexus"
issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues" issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues"
dependencies:
- srv-web-7-4-core

View File

@ -1,4 +1,11 @@
# run_once_srv_web_7_7_inj_javascript: deactivated - name: Load former meta dependencies once
block:
- name: Include moved dependency 'srv-web-7-4-core'
include_role:
name: srv-web-7-4-core
- set_fact:
run_once_srv_web_7_7_inj_javascript: true
when: run_once_srv_web_7_7_inj_javascript is not defined
- name: "Load JavaScript code for '{{ application_id }}'" - name: "Load JavaScript code for '{{ application_id }}'"
set_fact: set_fact:
javascript_code: "{{ lookup('template', modifier_javascript_template_file) }}" javascript_code: "{{ lookup('template', modifier_javascript_template_file) }}"

View File

@ -1,4 +1,3 @@
---
galaxy_info: galaxy_info:
author: "Kevin VeenBirkenbach" author: "Kevin VeenBirkenbach"
role_name: "srv-web-7-7-inj-logout" role_name: "srv-web-7-7-inj-logout"
@ -9,21 +8,17 @@ galaxy_info:
license_url: "https://s.veen.world/cncl" license_url: "https://s.veen.world/cncl"
min_ansible_version: "2.9" min_ansible_version: "2.9"
platforms: platforms:
- name: Any - name: Any
versions: ["all"] versions: ["all"]
galaxy_tags: galaxy_tags:
- nginx - nginx
- logout - logout
- oidc - oidc
- javascript - javascript
- csp - csp
- sub_filter - sub_filter
company: > company: >
Kevin VeenBirkenbach Kevin VeenBirkenbach Consulting & Coaching Solutions https://www.veen.world
Consulting & Coaching Solutions
https://www.veen.world
repository: "https://github.com/kevinveenbirkenbach/infinito-nexus" repository: "https://github.com/kevinveenbirkenbach/infinito-nexus"
issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues" issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues"
documentation: "https://github.com/kevinveenbirkenbach/infinito-nexus/tree/main/roles/srv-web-7-7-inj-logout" documentation: "https://github.com/kevinveenbirkenbach/infinito-nexus/tree/main/roles/srv-web-7-7-inj-logout"
dependencies:
- srv-web-7-4-core

View File

@ -1,3 +1,11 @@
- name: Load former meta dependencies once
block:
- name: Include moved dependency 'srv-web-7-4-core'
include_role:
name: srv-web-7-4-core
- set_fact:
run_once_srv_web_7_7_inj_logout: true
when: run_once_srv_web_7_7_inj_logout is not defined
- name: "deploy the logout.js" - name: "deploy the logout.js"
include_tasks: "deploy.yml" include_tasks: "deploy.yml"
when: run_once_srv_web_7_7_inj_logout is not defined when: run_once_srv_web_7_7_inj_logout is not defined

View File

@ -1,4 +1,3 @@
---
galaxy_info: galaxy_info:
author: "Kevin Veen-Birchenbach" author: "Kevin Veen-Birchenbach"
description: "Injects Matomo analytics tracking code and noscript image tracker into Nginx-served HTML pages." description: "Injects Matomo analytics tracking code and noscript image tracker into Nginx-served HTML pages."
@ -9,16 +8,13 @@ galaxy_info:
Consulting & Coaching Solutions Consulting & Coaching Solutions
https://www.veen.world https://www.veen.world
galaxy_tags: galaxy_tags:
- nginx - nginx
- matomo - matomo
- analytics - analytics
repository: "https://github.com/kevinveenbirkenbach/infinito-nexus" repository: "https://github.com/kevinveenbirkenbach/infinito-nexus"
issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues" issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues"
documentation: "https://github.com/kevinveenbirkenbach/infinito-nexus/tree/main/roles/srv-web-7-7-inj-matomo" documentation: "https://github.com/kevinveenbirkenbach/infinito-nexus/tree/main/roles/srv-web-7-7-inj-matomo"
min_ansible_version: "2.9" min_ansible_version: "2.9"
platforms: platforms:
- name: Any - name: Any
versions: [ all ] versions: [all]
dependencies:
- srv-web-7-4-core

View File

@ -1,5 +1,11 @@
# run_once_srv_web_7_7_inj_matomo: deactivated - name: Load former meta dependencies once
block:
- name: Include moved dependency 'srv-web-7-4-core'
include_role:
name: srv-web-7-4-core
- set_fact:
run_once_srv_web_7_7_inj_matomo: true
when: run_once_srv_web_7_7_inj_matomo is not defined
- name: "Relevant variables for role: {{ role_path | basename }}" - name: "Relevant variables for role: {{ role_path | basename }}"
debug: debug:
msg: msg:
@ -10,16 +16,16 @@
- name: "Check if site {{ domain }} is allready registered at Matomo" - name: "Check if site {{ domain }} is allready registered at Matomo"
uri: uri:
url: "{{ matomo_verification_url }}" url: "{{ matomo_verification_url }}"
method: GET method: GET
return_content: yes return_content: yes
status_code: 200 status_code: 200
validate_certs: yes validate_certs: yes
register: site_check register: site_check
- name: Set matomo_site_id to Null - name: Set matomo_site_id to Null
set_fact: set_fact:
matomo_site_id: Null matomo_site_id:
- name: Set fact for site ID if site already exists - name: Set fact for site ID if site already exists
set_fact: set_fact:

View File

@ -1,5 +1,3 @@
---
galaxy_info: galaxy_info:
author: "Kevin Veen-Birkenbach" author: "Kevin Veen-Birkenbach"
description: "Injects a JS snippet into HTML to notify parent windows of iframe location changes and force external links to new tabs." description: "Injects a JS snippet into HTML to notify parent windows of iframe location changes and force external links to new tabs."
@ -14,15 +12,13 @@ galaxy_info:
license_url: "https://s.veen.world/cncl" license_url: "https://s.veen.world/cncl"
min_ansible_version: "2.9" min_ansible_version: "2.9"
platforms: platforms:
- name: Archlinux - name: Archlinux
versions: versions:
- rolling - rolling
galaxy_tags: galaxy_tags:
- nginx - nginx
- iframe - iframe
- javascript - javascript
- csp - csp
- security - security
- postMessage - postMessage
dependencies:
- srv-web-7-4-core

View File

@ -1,4 +1,11 @@
# run_once_srv_web_7_7_inj_port_ui_desktop: deactivated - name: Load former meta dependencies once
block:
- name: Include moved dependency 'srv-web-7-4-core'
include_role:
name: srv-web-7-4-core
- set_fact:
run_once_srv_web_7_7_inj_port_ui_desktop: true
when: run_once_srv_web_7_7_inj_port_ui_desktop is not defined
- name: "Load iFrame handler JS template for '{{ application_id }}'" - name: "Load iFrame handler JS template for '{{ application_id }}'"
set_fact: set_fact:
iframe_code: "{{ lookup('template','iframe-handler.js.j2') }}" iframe_code: "{{ lookup('template','iframe-handler.js.j2') }}"

View File

@ -1,4 +1,3 @@
---
galaxy_info: galaxy_info:
author: "Kevin Veen-Birkenbach" author: "Kevin Veen-Birkenbach"
description: "An Ansible role to automate Lets Encrypt SSL certificate issuance and renewal for Nginx" description: "An Ansible role to automate Lets Encrypt SSL certificate issuance and renewal for Nginx"
@ -10,17 +9,15 @@ galaxy_info:
https://www.veen.world https://www.veen.world
min_ansible_version: "2.9" min_ansible_version: "2.9"
platforms: platforms:
- name: Archlinux - name: Archlinux
versions: versions:
- rolling - rolling
galaxy_tags: galaxy_tags:
- letsencrypt - letsencrypt
- nginx - nginx
- ssl - ssl
- certificate - certificate
- security - security
repository: "https://github.com/kevinveenbirkenbach/infinito-nexus" repository: "https://github.com/kevinveenbirkenbach/infinito-nexus"
issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues" issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues"
documentation: "https://docs.infinito.nexus" documentation: "https://docs.infinito.nexus"
dependencies:
- srv-web-6-6-tls-renew

View File

@ -1,13 +1,21 @@
- block: - name: Load former meta dependencies once
- name: create nginx letsencrypt config file block:
template: - name: Include moved dependency 'srv-web-6-6-tls-renew'
src: "letsencrypt.conf.j2" include_role:
dest: "{{nginx.directories.http.global}}letsencrypt.conf" name: srv-web-6-6-tls-renew
notify: restart openresty - set_fact:
run_once_srv_web_7_7_letsencrypt: true
- name: "Set CAA records for all base domains" when: run_once_srv_web_7_7_letsencrypt is not defined
include_tasks: 01_set-caa-records.yml - block:
when: dns_provider == 'cloudflare' - name: create nginx letsencrypt config file
template:
- include_tasks: utils/run_once.yml src: "letsencrypt.conf.j2"
dest: "{{nginx.directories.http.global}}letsencrypt.conf"
notify: restart openresty
- name: "Set CAA records for all base domains"
include_tasks: 01_set-caa-records.yml
when: dns_provider == 'cloudflare'
- include_tasks: utils/run_once.yml
when: run_once_srv_web_7_7_letsencrypt is not defined when: run_once_srv_web_7_7_letsencrypt is not defined

View File

@ -1,4 +1,3 @@
---
galaxy_info: galaxy_info:
author: "Kevin Veen-Birkenbach" author: "Kevin Veen-Birkenbach"
description: "Automated backups to a swappable USB device." description: "Automated backups to a swappable USB device."
@ -10,18 +9,15 @@ galaxy_info:
https://www.veen.world https://www.veen.world
min_ansible_version: "2.9" min_ansible_version: "2.9"
platforms: platforms:
- name: Archlinux - name: Archlinux
versions: versions:
- rolling - rolling
galaxy_tags: galaxy_tags:
- backup - backup
- usb - usb
- systemd - systemd
- automation - automation
- archlinux - archlinux
repository: https://github.com/kevinveenbirkenbach/infinito-nexus repository: https://github.com/kevinveenbirkenbach/infinito-nexus
issue_tracker_url: https://github.com/kevinveenbirkenbach/infinito-nexus/issues issue_tracker_url: https://github.com/kevinveenbirkenbach/infinito-nexus/issues
documentation: "https://docs.infinito.nexus/" documentation: "https://docs.infinito.nexus/"
dependencies:
- sys-cln-bkps-service
- sys-lock

View File

@ -1,9 +1,20 @@
- name: Load former meta dependencies once
block:
- name: Include moved dependencies
include_role:
name: '{{ item }}'
loop:
- sys-cln-bkps-service
- sys-lock
- set_fact:
run_once_svc_bkp_loc_2_usb: true
when: run_once_svc_bkp_loc_2_usb is not defined
- name: Fail if any backup_to_usb variable is empty - name: Fail if any backup_to_usb variable is empty
assert: assert:
that: that:
- backup_to_usb_mount != "" - backup_to_usb_mount != ""
- backup_to_usb_target != "" - backup_to_usb_target != ""
- backup_to_usb_source != "" - backup_to_usb_source != ""
fail_msg: | fail_msg: |
One or more of the configuration variables are empty! One or more of the configuration variables are empty!
Please set: Please set:

View File

@ -1,5 +1,3 @@
---
galaxy_info: galaxy_info:
author: "Kevin Veen-Birkenbach" author: "Kevin Veen-Birkenbach"
description: "Pulls backups from a remote server and stores them locally using rsync with retry logic. This role is part of a comprehensive backup scheme and works in conjunction with other roles to ensure reliable backup operations." description: "Pulls backups from a remote server and stores them locally using rsync with retry logic. This role is part of a comprehensive backup scheme and works in conjunction with other roles to ensure reliable backup operations."
@ -11,24 +9,19 @@ galaxy_info:
https://www.veen.world https://www.veen.world
min_ansible_version: "2.9" min_ansible_version: "2.9"
platforms: platforms:
- name: Archlinux - name: Archlinux
versions: versions:
- rolling - rolling
galaxy_tags: galaxy_tags:
- backup - backup
- remote - remote
- local - local
- docker - docker
- systemd - systemd
- automation - automation
repository: "https://github.com/kevinveenbirkenbach/infinito-nexus" repository: "https://github.com/kevinveenbirkenbach/infinito-nexus"
issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues" issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues"
documentation: "https://docs.infinito.nexus" documentation: "https://docs.infinito.nexus"
dependencies: dependencies:
- dev-git - sys-cln-bkps-timer
- sys-alm-compose - sys-cln-faild-bkps
- sys-cln-bkps-timer
- sys-cln-faild-bkps
- sys-lock
- user-root
- sys-rst-daemon

View File

@ -1,3 +1,17 @@
- name: Load former meta dependencies once
block:
- name: Include moved dependencies
include_role:
name: '{{ item }}'
loop:
- dev-git
- sys-alm-compose
- sys-lock
- user-root
- sys-rst-daemon
- set_fact:
run_once_svc_bkp_rmt_2_loc: true
when: run_once_svc_bkp_rmt_2_loc is not defined
- name: "create {{docker_backup_remote_to_local_folder}}" - name: "create {{docker_backup_remote_to_local_folder}}"
file: file:
path: "{{docker_backup_remote_to_local_folder}}" path: "{{docker_backup_remote_to_local_folder}}"
@ -12,7 +26,7 @@
- name: create svc-bkp-rmt-2-loc.infinito.service - name: create svc-bkp-rmt-2-loc.infinito.service
template: template:
src: svc-bkp-rmt-2-loc.service.j2 src: svc-bkp-rmt-2-loc.service.j2
dest: /etc/systemd/system/svc-bkp-rmt-2-loc.infinito.service dest: /etc/systemd/system/svc-bkp-rmt-2-loc.infinito.service
notify: reload svc-bkp-rmt-2-loc service notify: reload svc-bkp-rmt-2-loc service
@ -30,5 +44,5 @@
include_role: include_role:
name: sys-timer name: sys-timer
vars: vars:
on_calendar: "{{on_calendar_backup_remote_to_local}}" on_calendar: "{{on_calendar_backup_remote_to_local}}"

View File

@ -1,4 +1,3 @@
---
galaxy_info: galaxy_info:
author: "Kevin Veen-Birkenbach" author: "Kevin Veen-Birkenbach"
description: >- description: >-
@ -12,17 +11,15 @@ galaxy_info:
https://www.veen.world https://www.veen.world
min_ansible_version: "2.9" min_ansible_version: "2.9"
platforms: platforms:
- name: Docker - name: Docker
versions: versions:
- "latest" - "latest"
galaxy_tags: galaxy_tags:
- postgresql - postgresql
- docker - docker
- database - database
- administration - administration
- central-database - central-database
repository: "https://github.com/kevinveenbirkenbach/infinito-nexus" repository: "https://github.com/kevinveenbirkenbach/infinito-nexus"
issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues" issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues"
documentation: "https://docs.infinito.nexus" documentation: "https://docs.infinito.nexus"
dependencies:
- docker-core # Loading it here to avoid extra flush for network init

View File

@ -1,9 +1,17 @@
- name: Load former meta dependencies once
block:
- name: Include moved dependency 'docker-core'
include_role:
name: docker-core
- set_fact:
run_once_svc_db_postgres: true
when: run_once_svc_db_postgres is not defined
- name: Create Docker network for PostgreSQL - name: Create Docker network for PostgreSQL
community.docker.docker_network: community.docker.docker_network:
name: "{{ postgres_network_name }}" name: "{{ postgres_network_name }}"
state: present state: present
ipam_config: ipam_config:
- subnet: "{{ postgres_subnet }}" - subnet: "{{ postgres_subnet }}"
- name: "include docker-compose role" - name: "include docker-compose role"
include_role: include_role:

View File

@ -1,4 +1,3 @@
---
galaxy_info: galaxy_info:
author: "Kevin Veen-Birchenbach" author: "Kevin Veen-Birchenbach"
description: "Automates swapfile creation on target systems by cloning and executing a swapfile script." description: "Automates swapfile creation on target systems by cloning and executing a swapfile script."
@ -9,15 +8,13 @@ galaxy_info:
Consulting & Coaching Solutions Consulting & Coaching Solutions
https://www.veen.world https://www.veen.world
galaxy_tags: galaxy_tags:
- swapfile - swapfile
- performance - performance
repository: "https://github.com/kevinveenbirkenbach/infinito-nexus" repository: "https://github.com/kevinveenbirkenbach/infinito-nexus"
issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues" issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues"
documentation: "https://github.com/kevinveenbirkenbach/infinito-nexus/tree/main/roles/sys-opt-swapfile" documentation: "https://github.com/kevinveenbirkenbach/infinito-nexus/tree/main/roles/sys-opt-swapfile"
min_ansible_version: "2.9" min_ansible_version: "2.9"
platforms: platforms:
- name: Any - name: Any
versions: versions:
- all - all
dependencies:
- pkgmgr-install

View File

@ -1,3 +1,11 @@
- name: Load former meta dependencies once
block:
- name: Include moved dependency 'pkgmgr-install'
include_role:
name: pkgmgr-install
- set_fact:
run_once_svc_opt_swapfile: true
when: run_once_svc_opt_swapfile is not defined
- name: "pkgmgr install" - name: "pkgmgr install"
include_role: include_role:
name: pkgmgr-install name: pkgmgr-install

View File

@ -1,4 +1,3 @@
---
galaxy_info: galaxy_info:
author: "Kevin Veen-Birkenbach" author: "Kevin Veen-Birkenbach"
description: "Installs a unified systemd notification service that sends alerts via both Telegram and Email when a service fails." description: "Installs a unified systemd notification service that sends alerts via both Telegram and Email when a service fails."
@ -10,18 +9,15 @@ galaxy_info:
https://www.veen.world https://www.veen.world
min_ansible_version: "2.9" min_ansible_version: "2.9"
platforms: platforms:
- name: Archlinux - name: Archlinux
versions: versions:
- rolling - rolling
galaxy_tags: galaxy_tags:
- systemd - systemd
- notifier - notifier
- telegram - telegram
- email - email
- notifications - notifications
repository: "https://github.com/kevinveenbirkenbach/infinito-nexus" repository: "https://github.com/kevinveenbirkenbach/infinito-nexus"
issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues" issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues"
documentation: "https://docs.infinito.nexus" documentation: "https://docs.infinito.nexus"
dependencies:
- sys-alm-telegram
- sys-alm-email

View File

@ -1,4 +1,14 @@
--- - name: Load former meta dependencies once
block:
- name: Include moved dependencies
include_role:
name: '{{ item }}'
loop:
- sys-alm-telegram
- sys-alm-email
- set_fact:
run_once_sys_alm_compose: true
when: run_once_sys_alm_compose is not defined
- name: configure sys-alm-compose.infinito@.service - name: configure sys-alm-compose.infinito@.service
template: template:
src: sys-alm-compose@.service.j2 src: sys-alm-compose@.service.j2

View File

@ -1,4 +1,3 @@
---
galaxy_info: galaxy_info:
author: "Kevin Veen-Birkenbach" author: "Kevin Veen-Birkenbach"
description: "Installs and configures components for sending email notifications. This role is part of the sys-alm-compose suite, providing automated alerts when services fail." description: "Installs and configures components for sending email notifications. This role is part of the sys-alm-compose suite, providing automated alerts when services fail."
@ -10,18 +9,15 @@ galaxy_info:
https://www.veen.world https://www.veen.world
min_ansible_version: "2.9" min_ansible_version: "2.9"
platforms: platforms:
- name: Archlinux - name: Archlinux
versions: versions:
- rolling - rolling
galaxy_tags: galaxy_tags:
- email - email
- systemd - systemd
- notifications - notifications
- automation - automation
- msmtp - msmtp
repository: "https://github.com/kevinveenbirkenbach/infinito-nexus" repository: "https://github.com/kevinveenbirkenbach/infinito-nexus"
issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues" issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues"
documentation: "https://docs.infinito.nexus" documentation: "https://docs.infinito.nexus"
dependencies:
- sys-svc-msmtp
- sys-rst-daemon

View File

@ -1,3 +1,14 @@
- name: Load former meta dependencies once
block:
- name: Include moved dependencies
include_role:
name: '{{ item }}'
loop:
- sys-svc-msmtp
- sys-rst-daemon
- set_fact:
run_once_sys_alm_email: true
when: run_once_sys_alm_email is not defined
- name: "create {{systemd_notifier_email_folder}}" - name: "create {{systemd_notifier_email_folder}}"
file: file:
path: "{{systemd_notifier_email_folder}}" path: "{{systemd_notifier_email_folder}}"
@ -6,11 +17,11 @@
- name: configure sys-alm-email.sh - name: configure sys-alm-email.sh
template: template:
src: sys-alm-email.sh.j2 src: sys-alm-email.sh.j2
dest: "{{systemd_notifier_email_folder}}sys-alm-email.sh" dest: "{{systemd_notifier_email_folder}}sys-alm-email.sh"
- name: configure sys-alm-email.infinito.service - name: configure sys-alm-email.infinito.service
template: template:
src: sys-alm-email@.service.j2 src: sys-alm-email@.service.j2
dest: /etc/systemd/system/sys-alm-email.infinito@.service dest: /etc/systemd/system/sys-alm-email.infinito@.service
notify: restart sys-alm-email service notify: restart sys-alm-email service

View File

@ -1,4 +1,3 @@
---
galaxy_info: galaxy_info:
author: "Kevin Veen-Birkenbach" author: "Kevin Veen-Birkenbach"
description: "Installs and configures components for sending Telegram notifications through systemd. This role is part of the sys-alm-compose suite, providing automated alerts when services fail." description: "Installs and configures components for sending Telegram notifications through systemd. This role is part of the sys-alm-compose suite, providing automated alerts when services fail."
@ -10,17 +9,15 @@ galaxy_info:
https://www.veen.world https://www.veen.world
min_ansible_version: "2.9" min_ansible_version: "2.9"
platforms: platforms:
- name: Archlinux - name: Archlinux
versions: versions:
- rolling - rolling
galaxy_tags: galaxy_tags:
- telegram - telegram
- systemd - systemd
- notifications - notifications
- automation - automation
- curl - curl
repository: "https://github.com/kevinveenbirkenbach/infinito-nexus" repository: "https://github.com/kevinveenbirkenbach/infinito-nexus"
issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues" issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues"
documentation: "https://docs.infinito.nexus" documentation: "https://docs.infinito.nexus"
dependencies:
- sys-rst-daemon

View File

@ -1,8 +1,16 @@
- name: Load former meta dependencies once
block:
- name: Include moved dependency 'sys-rst-daemon'
include_role:
name: sys-rst-daemon
- set_fact:
run_once_sys_alm_telegram: true
when: run_once_sys_alm_telegram is not defined
- name: Fail if Telegram bot credentials are not set - name: Fail if Telegram bot credentials are not set
assert: assert:
that: that:
- telegram_bot_token != "" - telegram_bot_token != ""
- telegram_chat_id != "" - telegram_chat_id != ""
fail_msg: | fail_msg: |
Telegram configuration is incomplete! Telegram configuration is incomplete!
Please provide nonempty values for: Please provide nonempty values for:

View File

@ -1,4 +1,3 @@
---
galaxy_info: galaxy_info:
author: "Kevin Veen-Birkenbach" author: "Kevin Veen-Birkenbach"
description: "Automates the backup of Docker volumes to a local folder" description: "Automates the backup of Docker volumes to a local folder"
@ -10,21 +9,17 @@ galaxy_info:
https://www.veen.world https://www.veen.world
min_ansible_version: "2.9" min_ansible_version: "2.9"
platforms: platforms:
- name: Archlinux - name: Archlinux
versions: versions:
- rolling - rolling
galaxy_tags: galaxy_tags:
- backup - backup
- docker - docker
- local - local
- systemd - systemd
- automation - automation
repository: "https://github.com/kevinveenbirkenbach/infinito-nexus" repository: "https://github.com/kevinveenbirkenbach/infinito-nexus"
issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues" issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues"
documentation: "https://docs.infinito.nexus" documentation: "https://docs.infinito.nexus"
dependencies: dependencies:
- sys-bkp-provider - sys-cln-faild-bkps
- sys-alm-compose
- sys-cln-faild-bkps
- sys-lock
- sys-bkp-directory-validator

View File

@ -1,3 +1,16 @@
- name: Load former meta dependencies once
block:
- name: Include moved dependencies
include_role:
name: '{{ item }}'
loop:
- sys-bkp-provider
- sys-alm-compose
- sys-lock
- sys-bkp-directory-validator
- set_fact:
run_once_sys_bkp_docker_2_loc: true
when: run_once_sys_bkp_docker_2_loc is not defined
- include_tasks: 02_pkgmgr_routines.yml - include_tasks: 02_pkgmgr_routines.yml
when: backup_docker_to_local_folder is not defined when: backup_docker_to_local_folder is not defined
@ -25,4 +38,4 @@
include_role: include_role:
name: sys-timer name: sys-timer
vars: vars:
on_calendar: "{{on_calendar_backup_docker_to_local}}" on_calendar: "{{on_calendar_backup_docker_to_local}}"

View File

@ -1,4 +1,3 @@
---
galaxy_info: galaxy_info:
author: "Kevin Veen-Birkenbach" author: "Kevin Veen-Birkenbach"
description: "Configures the host as a backup provider to facilitate secure backup operations." description: "Configures the host as a backup provider to facilitate secure backup operations."
@ -10,18 +9,15 @@ galaxy_info:
https://www.veen.world https://www.veen.world
min_ansible_version: "2.9" min_ansible_version: "2.9"
platforms: platforms:
- name: Linux - name: Linux
versions: versions:
- all - all
galaxy_tags: galaxy_tags:
- backups - backups
- provider - provider
- backup - backup
- automation - automation
- security - security
repository: "https://github.com/kevinveenbirkenbach/infinito-nexus" repository: "https://github.com/kevinveenbirkenbach/infinito-nexus"
issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues" issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues"
documentation: "https://docs.infinito.nexus" documentation: "https://docs.infinito.nexus"
dependencies:
- sys-bkp-provider-user
- sys-cln-bkps-timer

View File

@ -0,0 +1,11 @@
- name: Load former meta dependencies once
block:
- name: Include moved dependencies
include_role:
name: '{{ item }}'
loop:
- sys-bkp-provider-user
- sys-cln-bkps-timer
- set_fact:
run_once_sys_bkp_provider: true
when: run_once_sys_bkp_provider is not defined

View File

@ -1,4 +1,3 @@
galaxy_info: galaxy_info:
author: "Kevin Veen-Birkenbach" author: "Kevin Veen-Birkenbach"
description: > description: >
@ -10,15 +9,13 @@ galaxy_info:
Consulting & Coaching Solutions Consulting & Coaching Solutions
https://www.veen.world https://www.veen.world
galaxy_tags: galaxy_tags:
- infinito - infinito
- cli - cli
- management - management
- automation - automation
repository: "https://github.com/kevinveenbirkenbach/infinito-nexus" repository: "https://github.com/kevinveenbirkenbach/infinito-nexus"
issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues" issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues"
documentation: "https://github.com/kevinveenbirkenbach/infinito-nexus/" documentation: "https://github.com/kevinveenbirkenbach/infinito-nexus/"
logo: logo:
class: "fa-solid fa-terminal" class: "fa-solid fa-terminal"
run_after: [] run_after: []
dependencies:
- dev-yay

View File

@ -1,3 +1,11 @@
- name: Load former meta dependencies once
block:
- name: Include moved dependency 'dev-yay'
include_role:
name: dev-yay
- set_fact:
run_once_sys_cli: true
when: run_once_sys_cli is not defined
- name: "pkgmgr install infinito" - name: "pkgmgr install infinito"
include_role: include_role:
name: pkgmgr-install name: pkgmgr-install

View File

@ -1,4 +1,3 @@
---
galaxy_info: galaxy_info:
author: "Kevin Veen-Birkenbach" author: "Kevin Veen-Birkenbach"
description: "Automates the cleanup of old backups by executing a Python script that deletes outdated backup versions when disk usage exceeds a specified threshold." description: "Automates the cleanup of old backups by executing a Python script that deletes outdated backup versions when disk usage exceeds a specified threshold."
@ -10,19 +9,14 @@ galaxy_info:
https://www.veen.world https://www.veen.world
min_ansible_version: "2.9" min_ansible_version: "2.9"
platforms: platforms:
- name: Linux - name: Linux
versions: versions:
- all - all
galaxy_tags: galaxy_tags:
- backup - backup
- cleanup - cleanup
- disk - disk
- automation - automation
repository: "https://github.com/kevinveenbirkenbach/infinito-nexus" repository: "https://github.com/kevinveenbirkenbach/infinito-nexus"
issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues" issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues"
documentation: "https://docs.infinito.nexus" documentation: "https://docs.infinito.nexus"
dependencies:
- dev-python-pip
- sys-alm-compose
- sys-lock
- sys-rst-daemon

View File

@ -1,8 +1,21 @@
- name: Load former meta dependencies once
block:
- name: Include moved dependencies
include_role:
name: '{{ item }}'
loop:
- dev-python-pip
- sys-alm-compose
- sys-lock
- sys-rst-daemon
- set_fact:
run_once_sys_cln_bkps_service: true
when: run_once_sys_cln_bkps_service is not defined
- name: install lsof and python-psutil - name: install lsof and python-psutil
community.general.pacman: community.general.pacman:
name: name:
- lsof - lsof
- python-psutil - python-psutil
state: present state: present
- name: "create {{cleanup_backups_directory}}" - name: "create {{cleanup_backups_directory}}"
@ -13,11 +26,11 @@
- name: create sys-cln-backups.py - name: create sys-cln-backups.py
copy: copy:
src: "sys-cln-backups.py" src: "sys-cln-backups.py"
dest: "{{cleanup_backups_directory}}sys-cln-backups.py" dest: "{{cleanup_backups_directory}}sys-cln-backups.py"
- name: create sys-cln-backups.infinito.service - name: create sys-cln-backups.infinito.service
template: template:
src: "sys-cln-backups.service.j2" src: "sys-cln-backups.service.j2"
dest: "/etc/systemd/system/sys-cln-backups.infinito.service" dest: "/etc/systemd/system/sys-cln-backups.infinito.service"
notify: reload sys-cln-backups.infinito.service notify: reload sys-cln-backups.infinito.service

View File

@ -1,4 +1,3 @@
---
galaxy_info: galaxy_info:
author: "Kevin Veen-Birkenbach" author: "Kevin Veen-Birkenbach"
description: "Schedules periodic cleanup of old backups by configuring a systemd timer to trigger the sys-cln-bkps-service role." description: "Schedules periodic cleanup of old backups by configuring a systemd timer to trigger the sys-cln-bkps-service role."
@ -10,17 +9,14 @@ galaxy_info:
https://www.veen.world https://www.veen.world
min_ansible_version: "2.9" min_ansible_version: "2.9"
platforms: platforms:
- name: Linux - name: Linux
versions: versions:
- all - all
galaxy_tags: galaxy_tags:
- timer - timer
- backup - backup
- cleanup - cleanup
- automation - automation
repository: "https://github.com/kevinveenbirkenbach/infinito-nexus" repository: "https://github.com/kevinveenbirkenbach/infinito-nexus"
issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues" issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues"
documentation: "https://docs.infinito.nexus" documentation: "https://docs.infinito.nexus"
dependencies:
- sys-cln-bkps-service
- sys-rst-daemon

View File

@ -1,3 +1,14 @@
- name: Load former meta dependencies once
block:
- name: Include moved dependencies
include_role:
name: '{{ item }}'
loop:
- sys-cln-bkps-service
- sys-rst-daemon
- set_fact:
run_once_sys_cln_bkps_timer: true
when: run_once_sys_cln_bkps_timer is not defined
- name: set service_name to sys-cln-backups - name: set service_name to sys-cln-backups
set_fact: set_fact:
service_name: "sys-cln-backups" service_name: "sys-cln-backups"
@ -7,7 +18,7 @@
include_role: include_role:
name: sys-timer name: sys-timer
vars: vars:
on_calendar: "{{on_calendar_cleanup_backups}}" on_calendar: "{{on_calendar_cleanup_backups}}"
when: run_once_sys_cln_bkps_timer is not defined when: run_once_sys_cln_bkps_timer is not defined
- name: run the cleanup_backups_timer tasks once - name: run the cleanup_backups_timer tasks once

View File

@ -1,4 +1,3 @@
---
galaxy_info: galaxy_info:
author: "Kevin Veen-Birkenbach" author: "Kevin Veen-Birkenbach"
description: "Automates the revocation and deletion of unused Let's Encrypt certificates" description: "Automates the revocation and deletion of unused Let's Encrypt certificates"
@ -10,19 +9,16 @@ galaxy_info:
https://www.veen.world https://www.veen.world
min_ansible_version: "2.9" min_ansible_version: "2.9"
platforms: platforms:
- name: Archlinux - name: Archlinux
versions: versions:
- rolling - rolling
galaxy_tags: galaxy_tags:
- certbot - certbot
- ssl - ssl
- cleanup - cleanup
- automation - automation
- systemd - systemd
repository: "https://github.com/kevinveenbirkenbach/certreap" repository: "https://github.com/kevinveenbirkenbach/certreap"
issue_tracker_url: "https://github.com/kevinveenbirkenbach/certreap/issues" issue_tracker_url: "https://github.com/kevinveenbirkenbach/certreap/issues"
documentation: "https://github.com/kevinveenbirkenbach/certreap#readme" documentation: "https://github.com/kevinveenbirkenbach/certreap#readme"
dependencies:
- sys-alm-compose
- sys-rst-daemon

View File

@ -1,3 +1,14 @@
- name: Load former meta dependencies once
block:
- name: Include moved dependencies
include_role:
name: '{{ item }}'
loop:
- sys-alm-compose
- sys-rst-daemon
- set_fact:
run_once_sys_cln_certs: true
when: run_once_sys_cln_certs is not defined
- name: "pkgmgr install" - name: "pkgmgr install"
include_role: include_role:
name: pkgmgr-install name: pkgmgr-install
@ -18,4 +29,4 @@
include_role: include_role:
name: sys-timer name: sys-timer
vars: vars:
on_calendar: "{{ on_calendar_cleanup_certs }}" on_calendar: "{{ on_calendar_cleanup_certs }}"

View File

@ -1,4 +1,3 @@
---
galaxy_info: galaxy_info:
author: "Kevin Veen-Birkenbach" author: "Kevin Veen-Birkenbach"
description: "Frees disk space on the target system by executing a cleanup script that removes temporary files, clears package caches, and optionally handles Docker and backup cleanup." description: "Frees disk space on the target system by executing a cleanup script that removes temporary files, clears package caches, and optionally handles Docker and backup cleanup."
@ -10,18 +9,14 @@ galaxy_info:
https://www.veen.world https://www.veen.world
min_ansible_version: "2.9" min_ansible_version: "2.9"
platforms: platforms:
- name: Linux - name: Linux
versions: versions:
- all - all
galaxy_tags: galaxy_tags:
- disk - disk
- cleanup - cleanup
- storage - storage
- automation - automation
repository: "https://github.com/kevinveenbirkenbach/infinito-nexus" repository: "https://github.com/kevinveenbirkenbach/infinito-nexus"
issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues" issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues"
documentation: "https://docs.infinito.nexus" documentation: "https://docs.infinito.nexus"
dependencies:
- sys-alm-compose
- sys-lock
- sys-rst-daemon

View File

@ -1,3 +1,15 @@
- name: Load former meta dependencies once
block:
- name: Include moved dependencies
include_role:
name: '{{ item }}'
loop:
- sys-alm-compose
- sys-lock
- sys-rst-daemon
- set_fact:
run_once_sys_cln_disc_space: true
when: run_once_sys_cln_disc_space is not defined
- name: "create {{cleanup_disc_space_folder}}" - name: "create {{cleanup_disc_space_folder}}"
file: file:
path: "{{cleanup_disc_space_folder}}" path: "{{cleanup_disc_space_folder}}"
@ -23,4 +35,4 @@
include_role: include_role:
name: sys-timer name: sys-timer
vars: vars:
on_calendar: "{{on_calendar_cleanup_disc_space}}" on_calendar: "{{on_calendar_cleanup_disc_space}}"

View File

@ -9,17 +9,14 @@ galaxy_info:
https://www.veen.world https://www.veen.world
min_ansible_version: "2.9" min_ansible_version: "2.9"
platforms: platforms:
- name: Archlinux - name: Archlinux
versions: versions:
- rolling - rolling
galaxy_tags: galaxy_tags:
- nginx - nginx
- cleanup - cleanup
- certbot - certbot
- domains - domains
repository: "https://github.com/kevinveenbirkenbach/infinito-nexus" repository: "https://github.com/kevinveenbirkenbach/infinito-nexus"
issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues" issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues"
documentation: "https://docs.infinito.nexus" documentation: "https://docs.infinito.nexus"
dependencies:
- srv-web-7-4-core
- sys-rst-daemon

View File

@ -1,4 +1,14 @@
--- - name: Load former meta dependencies once
block:
- name: Include moved dependencies
include_role:
name: '{{ item }}'
loop:
- srv-web-7-4-core
- sys-rst-daemon
- set_fact:
run_once_sys_cln_domains: true
when: run_once_sys_cln_domains is not defined
- name: Include task to remove deprecated nginx configs - name: Include task to remove deprecated nginx configs
include_tasks: remove_deprecated_nginx_configs.yml include_tasks: remove_deprecated_nginx_configs.yml
loop: "{{ deprecated_domains }}" loop: "{{ deprecated_domains }}"
@ -7,8 +17,8 @@
vars: vars:
domain: "{{ item }}" domain: "{{ item }}"
when: when:
- mode_cleanup | bool - mode_cleanup | bool
- run_once_sys_cln_domains is not defined - run_once_sys_cln_domains is not defined
## The revoking just works for the base domain ## The revoking just works for the base domain
#- name: "Revoke Certbot certificate for {{ item }}" #- name: "Revoke Certbot certificate for {{ item }}"

View File

@ -1,4 +1,3 @@
---
galaxy_info: galaxy_info:
author: "Kevin Veen-Birkenbach" author: "Kevin Veen-Birkenbach"
description: "Cleans up failed Docker backups by configuring a systemd service and timer to execute the cleanup operations periodically." description: "Cleans up failed Docker backups by configuring a systemd service and timer to execute the cleanup operations periodically."
@ -10,19 +9,14 @@ galaxy_info:
https://www.veen.world https://www.veen.world
min_ansible_version: "2.9" min_ansible_version: "2.9"
platforms: platforms:
- name: Linux - name: Linux
versions: versions:
- all - all
galaxy_tags: galaxy_tags:
- docker - docker
- backup - backup
- cleanup - cleanup
- automation - automation
repository: "https://github.com/kevinveenbirkenbach/infinito-nexus" repository: "https://github.com/kevinveenbirkenbach/infinito-nexus"
issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues" issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues"
documentation: "https://docs.infinito.nexus" documentation: "https://docs.infinito.nexus"
dependencies:
- sys-alm-compose
- sys-lock
- sys-bkp-directory-validator
- sys-rst-daemon

View File

@ -1,3 +1,16 @@
- name: Load former meta dependencies once
block:
- name: Include moved dependencies
include_role:
name: '{{ item }}'
loop:
- sys-alm-compose
- sys-lock
- sys-bkp-directory-validator
- sys-rst-daemon
- set_fact:
run_once_sys_cln_faild_bkps: true
when: run_once_sys_cln_faild_bkps is not defined
- name: "pkgmgr install" - name: "pkgmgr install"
include_role: include_role:
name: pkgmgr-install name: pkgmgr-install
@ -28,4 +41,4 @@
include_role: include_role:
name: sys-timer name: sys-timer
vars: vars:
on_calendar: "{{on_calendar_cleanup_failed_docker}}" on_calendar: "{{on_calendar_cleanup_failed_docker}}"

View File

@ -1,4 +1,3 @@
---
galaxy_info: galaxy_info:
author: "Kevin Veen-Birkenbach" author: "Kevin Veen-Birkenbach"
description: "Health-check for Btrfs filesystems, alerts on any device error counters." description: "Health-check for Btrfs filesystems, alerts on any device error counters."
@ -10,15 +9,13 @@ galaxy_info:
license_url: "https://s.veen.world/cncl" license_url: "https://s.veen.world/cncl"
min_ansible_version: "2.9" min_ansible_version: "2.9"
platforms: platforms:
- name: Archlinux - name: Archlinux
versions: ["rolling"] versions: ["rolling"]
galaxy_tags: galaxy_tags:
- monitor - monitor
- btrfs - btrfs
- health - health
- systemd - systemd
- filesystem - filesystem
repository: "https://github.com/kevinveenbirkenbach/infinito-nexus" repository: "https://github.com/kevinveenbirkenbach/infinito-nexus"
documentation: "https://docs.infinito.nexus" documentation: "https://docs.infinito.nexus"
dependencies:
- sys-alm-compose

View File

@ -1,3 +1,11 @@
- name: Load former meta dependencies once
block:
- name: Include moved dependency 'sys-alm-compose'
include_role:
name: sys-alm-compose
- set_fact:
run_once_sys_hlth_btrfs: true
when: run_once_sys_hlth_btrfs is not defined
- name: "create {{docker_health_btrfs_folder}}" - name: "create {{docker_health_btrfs_folder}}"
file: file:
path: "{{docker_health_btrfs_folder}}" path: "{{docker_health_btrfs_folder}}"
@ -23,4 +31,4 @@
include_role: include_role:
name: sys-timer name: sys-timer
vars: vars:
on_calendar: "{{on_calendar_health_btrfs}}" on_calendar: "{{on_calendar_health_btrfs}}"

View File

@ -9,19 +9,17 @@ galaxy_info:
https://www.veen.world https://www.veen.world
min_ansible_version: "2.9" min_ansible_version: "2.9"
platforms: platforms:
- name: Archlinux - name: Archlinux
versions: versions:
- rolling - rolling
galaxy_tags: galaxy_tags:
- csp - csp
- puppeteer - puppeteer
- health - health
- browser - browser
- nodejs - nodejs
- monitoring - monitoring
- systemd - systemd
repository: "https://github.com/kevinveenbirkenbach/infinito-nexus" repository: "https://github.com/kevinveenbirkenbach/infinito-nexus"
issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues" issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues"
documentation: "https://docs.infinito.nexus" documentation: "https://docs.infinito.nexus"
dependencies:
- sys-alm-compose

View File

@ -1,3 +1,11 @@
- name: Load former meta dependencies once
block:
- name: Include moved dependency 'sys-alm-compose'
include_role:
name: sys-alm-compose
- set_fact:
run_once_sys_hlth_csp: true
when: run_once_sys_hlth_csp is not defined
- name: "pkgmgr install" - name: "pkgmgr install"
include_role: include_role:
name: pkgmgr-install name: pkgmgr-install

View File

@ -1,4 +1,3 @@
---
galaxy_info: galaxy_info:
author: "Kevin Veen-Birkenbach" author: "Kevin Veen-Birkenbach"
description: "Disk-space usage monitor; alerts when usage exceeds threshold." description: "Disk-space usage monitor; alerts when usage exceeds threshold."
@ -10,15 +9,13 @@ galaxy_info:
license_url: "https://s.veen.world/cncl" license_url: "https://s.veen.world/cncl"
min_ansible_version: "2.9" min_ansible_version: "2.9"
platforms: platforms:
- name: Archlinux - name: Archlinux
versions: ["rolling"] versions: ["rolling"]
galaxy_tags: galaxy_tags:
- monitor - monitor
- disk - disk
- space - space
- health - health
- systemd - systemd
repository: "https://github.com/kevinveenbirkenbach/infinito-nexus" repository: "https://github.com/kevinveenbirkenbach/infinito-nexus"
documentation: "https://docs.infinito.nexus" documentation: "https://docs.infinito.nexus"
dependencies:
- sys-alm-compose

View File

@ -1,3 +1,11 @@
- name: Load former meta dependencies once
block:
- name: Include moved dependency 'sys-alm-compose'
include_role:
name: sys-alm-compose
- set_fact:
run_once_sys_hlth_disc_space: true
when: run_once_sys_hlth_disc_space is not defined
- name: "create {{health_disc_space_folder}}" - name: "create {{health_disc_space_folder}}"
file: file:
path: "{{health_disc_space_folder}}" path: "{{health_disc_space_folder}}"
@ -23,4 +31,4 @@
include_role: include_role:
name: sys-timer name: sys-timer
vars: vars:
on_calendar: "{{on_calendar_health_disc_space}}" on_calendar: "{{on_calendar_health_disc_space}}"

View File

@ -1,4 +1,3 @@
---
galaxy_info: galaxy_info:
author: "Kevin Veen-Birkenbach" author: "Kevin Veen-Birkenbach"
description: "Checks Docker containers for unhealthy or exited states and alerts on any issues." description: "Checks Docker containers for unhealthy or exited states and alerts on any issues."
@ -10,15 +9,13 @@ galaxy_info:
license_url: "https://s.veen.world/cncl" license_url: "https://s.veen.world/cncl"
min_ansible_version: "2.9" min_ansible_version: "2.9"
platforms: platforms:
- name: Archlinux - name: Archlinux
versions: ["rolling"] versions: ["rolling"]
galaxy_tags: galaxy_tags:
- monitor - monitor
- docker - docker
- containers - containers
- health - health
- systemd - systemd
repository: "https://github.com/kevinveenbirkenbach/infinito-nexus" repository: "https://github.com/kevinveenbirkenbach/infinito-nexus"
documentation: "https://docs.infinito.nexus" documentation: "https://docs.infinito.nexus"
dependencies:
- sys-alm-compose

View File

@ -1,3 +1,11 @@
- name: Load former meta dependencies once
block:
- name: Include moved dependency 'sys-alm-compose'
include_role:
name: sys-alm-compose
- set_fact:
run_once_sys_hlth_docker_container: true
when: run_once_sys_hlth_docker_container is not defined
- name: "create {{health_docker_container_folder}}" - name: "create {{health_docker_container_folder}}"
file: file:
path: "{{health_docker_container_folder}}" path: "{{health_docker_container_folder}}"
@ -11,7 +19,7 @@
- name: create sys-hlth-docker-container.infinito.service - name: create sys-hlth-docker-container.infinito.service
template: template:
src: sys-hlth-docker-container.service.j2 src: sys-hlth-docker-container.service.j2
dest: /etc/systemd/system/sys-hlth-docker-container.infinito.service dest: /etc/systemd/system/sys-hlth-docker-container.infinito.service
notify: reload sys-hlth-docker-container.infinito.service notify: reload sys-hlth-docker-container.infinito.service
@ -23,4 +31,4 @@
include_role: include_role:
name: sys-timer name: sys-timer
vars: vars:
on_calendar: "{{on_calendar_health_docker_container}}" on_calendar: "{{on_calendar_health_docker_container}}"

View File

@ -1,4 +1,3 @@
---
galaxy_info: galaxy_info:
author: "Kevin Veen-Birkenbach" author: "Kevin Veen-Birkenbach"
description: "Detects anonymous Docker volumes not bound to containers (unless whitelisted) and alerts." description: "Detects anonymous Docker volumes not bound to containers (unless whitelisted) and alerts."
@ -10,15 +9,13 @@ galaxy_info:
license_url: "https://s.veen.world/cncl" license_url: "https://s.veen.world/cncl"
min_ansible_version: "2.9" min_ansible_version: "2.9"
platforms: platforms:
- name: Archlinux - name: Archlinux
versions: ["rolling"] versions: ["rolling"]
galaxy_tags: galaxy_tags:
- monitor - monitor
- docker - docker
- volumes - volumes
- health - health
- systemd - systemd
repository: "https://github.com/kevinveenbirkenbach/infinito-nexus" repository: "https://github.com/kevinveenbirkenbach/infinito-nexus"
documentation: "https://docs.infinito.nexus" documentation: "https://docs.infinito.nexus"
dependencies:
- sys-alm-compose

View File

@ -1,3 +1,11 @@
- name: Load former meta dependencies once
block:
- name: Include moved dependency 'sys-alm-compose'
include_role:
name: sys-alm-compose
- set_fact:
run_once_sys_hlth_docker_volumes: true
when: run_once_sys_hlth_docker_volumes is not defined
- name: "create {{health_docker_volumes_folder}}" - name: "create {{health_docker_volumes_folder}}"
file: file:
path: "{{health_docker_volumes_folder}}" path: "{{health_docker_volumes_folder}}"
@ -11,7 +19,7 @@
- name: create sys-hlth-docker-volumes.infinito.service - name: create sys-hlth-docker-volumes.infinito.service
template: template:
src: sys-hlth-docker-volumes.service.j2 src: sys-hlth-docker-volumes.service.j2
dest: /etc/systemd/system/sys-hlth-docker-volumes.infinito.service dest: /etc/systemd/system/sys-hlth-docker-volumes.infinito.service
notify: reload sys-hlth-docker-volumes.infinito.service notify: reload sys-hlth-docker-volumes.infinito.service
@ -23,4 +31,4 @@
include_role: include_role:
name: sys-timer name: sys-timer
vars: vars:
on_calendar: "{{on_calendar_health_docker_volumes}}" on_calendar: "{{on_calendar_health_docker_volumes}}"

View File

@ -1,4 +1,3 @@
---
galaxy_info: galaxy_info:
author: "Kevin Veen-Birkenbach" author: "Kevin Veen-Birkenbach"
description: "Searches the systemd journal for errors over the past day and alerts if any are found." description: "Searches the systemd journal for errors over the past day and alerts if any are found."
@ -10,15 +9,13 @@ galaxy_info:
license_url: "https://s.veen.world/cncl" license_url: "https://s.veen.world/cncl"
min_ansible_version: "2.9" min_ansible_version: "2.9"
platforms: platforms:
- name: Archlinux - name: Archlinux
versions: ["rolling"] versions: ["rolling"]
galaxy_tags: galaxy_tags:
- monitor - monitor
- journalctl - journalctl
- logs - logs
- health - health
- systemd - systemd
repository: "https://github.com/kevinveenbirkenbach/infinito-nexus" repository: "https://github.com/kevinveenbirkenbach/infinito-nexus"
documentation: "https://docs.infinito.nexus" documentation: "https://docs.infinito.nexus"
dependencies:
- sys-alm-compose

View File

@ -1,3 +1,11 @@
- name: Load former meta dependencies once
block:
- name: Include moved dependency 'sys-alm-compose'
include_role:
name: sys-alm-compose
- set_fact:
run_once_sys_hlth_journalctl: true
when: run_once_sys_hlth_journalctl is not defined
- name: "create {{health_journalctl_folder}}" - name: "create {{health_journalctl_folder}}"
file: file:
path: "{{health_journalctl_folder}}" path: "{{health_journalctl_folder}}"
@ -23,4 +31,4 @@
include_role: include_role:
name: sys-timer name: sys-timer
vars: vars:
on_calendar: "{{on_calendar_health_journalctl}}" on_calendar: "{{on_calendar_health_journalctl}}"

View File

@ -1,4 +1,3 @@
---
galaxy_info: galaxy_info:
author: "Kevin Veen-Birkenbach" author: "Kevin Veen-Birkenbach"
description: "Periodic MTA health-check: sends test mail via msmtp and alerts on failure." description: "Periodic MTA health-check: sends test mail via msmtp and alerts on failure."
@ -10,15 +9,13 @@ galaxy_info:
license_url: "https://s.veen.world/cncl" license_url: "https://s.veen.world/cncl"
min_ansible_version: "2.9" min_ansible_version: "2.9"
platforms: platforms:
- name: Archlinux - name: Archlinux
versions: ["rolling"] versions: ["rolling"]
galaxy_tags: galaxy_tags:
- monitor - monitor
- msmtp - msmtp
- email - email
- health - health
- systemd - systemd
repository: "https://github.com/kevinveenbirkenbach/infinito-nexus" repository: "https://github.com/kevinveenbirkenbach/infinito-nexus"
documentation: "https://docs.infinito.nexus" documentation: "https://docs.infinito.nexus"
dependencies:
- sys-alm-telegram

View File

@ -1,3 +1,11 @@
- name: Load former meta dependencies once
block:
- name: Include moved dependency 'sys-alm-telegram'
include_role:
name: sys-alm-telegram
- set_fact:
run_once_sys_hlth_msmtp: true
when: run_once_sys_hlth_msmtp is not defined
- name: "create {{ health_msmtp_folder }}" - name: "create {{ health_msmtp_folder }}"
file: file:
path: "{{ health_msmtp_folder }}" path: "{{ health_msmtp_folder }}"
@ -6,7 +14,7 @@
- name: create sys-hlth-msmtp.sh - name: create sys-hlth-msmtp.sh
template: template:
src: sys-hlth-msmtp.sh.j2 src: sys-hlth-msmtp.sh.j2
dest: "{{ health_msmtp_folder }}sys-hlth-msmtp.sh" dest: "{{ health_msmtp_folder }}sys-hlth-msmtp.sh"
mode: '0755' mode: '0755'

View File

@ -1,4 +1,3 @@
---
galaxy_info: galaxy_info:
author: "Kevin Veen-Birkenbach" author: "Kevin Veen-Birkenbach"
description: "Checks that each Nginx domain returns its expected HTTP status and alerts on unexpected codes." description: "Checks that each Nginx domain returns its expected HTTP status and alerts on unexpected codes."
@ -10,17 +9,14 @@ galaxy_info:
license_url: "https://s.veen.world/cncl" license_url: "https://s.veen.world/cncl"
min_ansible_version: "2.9" min_ansible_version: "2.9"
platforms: platforms:
- name: Archlinux - name: Archlinux
versions: ["rolling"] versions: ["rolling"]
galaxy_tags: galaxy_tags:
- monitor - monitor
- webserver - webserver
- nginx - nginx
- http - http
- health - health
- systemd - systemd
repository: "https://github.com/kevinveenbirkenbach/infinito-nexus" repository: "https://github.com/kevinveenbirkenbach/infinito-nexus"
documentation: "https://docs.infinito.nexus" documentation: "https://docs.infinito.nexus"
dependencies:
- dev-python-pip
- sys-alm-compose

View File

@ -1,3 +1,14 @@
- name: Load former meta dependencies once
block:
- name: Include moved dependencies
include_role:
name: '{{ item }}'
loop:
- dev-python-pip
- sys-alm-compose
- set_fact:
run_once_sys_hlth_webserver: true
when: run_once_sys_hlth_webserver is not defined
- name: Install required Python modules - name: Install required Python modules
community.general.pacman: community.general.pacman:
name: python-requests name: python-requests
@ -28,4 +39,4 @@
include_role: include_role:
name: sys-timer name: sys-timer
vars: vars:
on_calendar: "{{on_calendar_health_nginx}}" on_calendar: "{{on_calendar_health_nginx}}"

Some files were not shown because too many files have changed in this diff Show More