mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-12-07 18:05:09 +00:00
Removed redundancies and simplified run_once flag
This commit is contained in:
@@ -16,6 +16,4 @@
|
||||
command: gitconfig --merge-option rebase --name "{{users.client.full_name}}" --email "{{users.client.email}}" --website "{{users.client.website}}" --signing gpg --gpg-key "{{users.client.gpg}}"
|
||||
become: false
|
||||
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
vars:
|
||||
flush_handlers: false
|
||||
- include_tasks: utils/once/flag.yml
|
||||
@@ -20,4 +20,4 @@
|
||||
src: caffeine.desktop.j2
|
||||
dest: "{{auto_start_directory}}caffeine.desktop"
|
||||
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
|
||||
@@ -1,14 +1,13 @@
|
||||
- block:
|
||||
- name: Include dependency 'dev-yay'
|
||||
include_role:
|
||||
name: dev-yay
|
||||
when: run_once_dev_yay is not defined
|
||||
|
||||
- name: Include dependency 'dev-yay'
|
||||
include_role:
|
||||
name: dev-yay
|
||||
when: run_once_dev_yay is not defined
|
||||
|
||||
- name: install torrent software
|
||||
kewlfft.aur.aur:
|
||||
use: yay
|
||||
name:
|
||||
- qbittorrent
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- name: install torrent software
|
||||
kewlfft.aur.aur:
|
||||
use: yay
|
||||
name:
|
||||
- qbittorrent
|
||||
- include_tasks: utils/once/flag.yml
|
||||
when: run_once_desk_qbittorrent is not defined
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
- block:
|
||||
- name: Include dependency 'dev-yay'
|
||||
include_role:
|
||||
name: dev-yay
|
||||
when: run_once_dev_yay is not defined
|
||||
- name: Include dependency 'dev-yay'
|
||||
include_role:
|
||||
name: dev-yay
|
||||
when: run_once_dev_yay is not defined
|
||||
|
||||
- name: install spotify
|
||||
kewlfft.aur.aur:
|
||||
use: yay
|
||||
name:
|
||||
- spotify
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- name: install spotify
|
||||
kewlfft.aur.aur:
|
||||
use: yay
|
||||
name:
|
||||
- spotify
|
||||
- include_tasks: utils/once/flag.yml
|
||||
when: run_once_desk_spotify is not defined
|
||||
|
||||
@@ -50,4 +50,4 @@
|
||||
mode: "0644"
|
||||
become: false
|
||||
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
@@ -1,13 +1,13 @@
|
||||
- block:
|
||||
- name: Include dependency 'dev-yay'
|
||||
include_role:
|
||||
name: dev-yay
|
||||
- name: Include dependency 'dev-yay'
|
||||
include_role:
|
||||
name: dev-yay
|
||||
|
||||
- name: install video conference software
|
||||
kewlfft.aur.aur:
|
||||
use: yay
|
||||
name:
|
||||
- zoom
|
||||
become: false
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- name: install video conference software
|
||||
kewlfft.aur.aur:
|
||||
use: yay
|
||||
name:
|
||||
- zoom
|
||||
become: false
|
||||
- include_tasks: utils/once/flag.yml
|
||||
when: run_once_desk_zoom is not defined
|
||||
|
||||
@@ -6,6 +6,4 @@
|
||||
name: fakeroot
|
||||
state: present
|
||||
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
vars:
|
||||
flush_handlers: false
|
||||
- include_tasks: utils/once/flag.yml
|
||||
@@ -4,7 +4,5 @@
|
||||
name: git
|
||||
state: present
|
||||
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
vars:
|
||||
flush_handlers: false
|
||||
- include_tasks: utils/once/flag.yml
|
||||
when: run_once_dev_git is not defined
|
||||
@@ -1,15 +1,12 @@
|
||||
- block:
|
||||
- include_role:
|
||||
name: dev-gcc
|
||||
when: run_once_dev_gcc is not defined
|
||||
|
||||
- include_role:
|
||||
name: dev-gcc
|
||||
when: run_once_dev_gcc is not defined
|
||||
- name: python pip install
|
||||
community.general.pacman:
|
||||
name: python-pip
|
||||
state: present
|
||||
|
||||
- name: python pip install
|
||||
community.general.pacman:
|
||||
name: python-pip
|
||||
state: present
|
||||
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
vars:
|
||||
flush_handlers: false
|
||||
- include_tasks: utils/once/flag.yml
|
||||
when: run_once_dev_python_pip is not defined
|
||||
|
||||
@@ -6,6 +6,4 @@
|
||||
name: python-yaml
|
||||
state: present
|
||||
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
vars:
|
||||
flush_handlers: false
|
||||
- include_tasks: utils/once/flag.yml
|
||||
|
||||
@@ -55,4 +55,4 @@
|
||||
aur_only: yes
|
||||
when: MODE_UPDATE | bool
|
||||
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
|
||||
@@ -20,9 +20,7 @@
|
||||
or
|
||||
env_template.changed | default(false)
|
||||
)
|
||||
- docker_compose is defined # @todo remove in the future, non docker roles shouldn't include this file
|
||||
- (application_id | get_entity_name) == (docker_compose.directories.instance | basename)
|
||||
notify: docker compose up
|
||||
|
||||
- meta: flush_handlers
|
||||
when: flush_handlers | default(true) | bool
|
||||
- name: "Flush Docker Compose Up Handlers for {{ docker_compose.directories.instance }}"
|
||||
meta: flush_handlers
|
||||
@@ -2,4 +2,4 @@
|
||||
name: sys-svc-docker
|
||||
when: run_once_sys_svc_docker is not defined
|
||||
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
|
||||
@@ -6,6 +6,12 @@
|
||||
- dev-make
|
||||
- dev-python-yaml
|
||||
|
||||
- name: Ensure OpenSSH client is installed
|
||||
community.general.pacman:
|
||||
name: openssh
|
||||
state: present
|
||||
become: true
|
||||
|
||||
- name: Ensure GitHub host key is in known_hosts
|
||||
known_hosts:
|
||||
path: "~/.ssh/known_hosts"
|
||||
@@ -48,4 +54,4 @@
|
||||
command: "pkgmgr pull --all"
|
||||
when: MODE_UPDATE | bool
|
||||
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
@@ -4,6 +4,7 @@
|
||||
vars:
|
||||
docker_network_name: "{{ OLLAMA_NETWORK }}"
|
||||
docker_network_subnet: "{{ networks.local[application_id].subnet }}"
|
||||
docker_compose_flush_handlers: true
|
||||
|
||||
- name: Pre-pull Ollama models
|
||||
vars:
|
||||
@@ -24,4 +25,4 @@
|
||||
(pull_result.rc | default(0)) != 0 and
|
||||
('up to date' not in (pull_result.stdout | default('')))
|
||||
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
@@ -1,4 +1,2 @@
|
||||
- include_tasks: 01_core.yml
|
||||
vars:
|
||||
flush_handlers: true
|
||||
when: run_once_svc_ai_ollama is not defined
|
||||
@@ -1,11 +1,11 @@
|
||||
- block:
|
||||
- name: Include dependencies
|
||||
include_role:
|
||||
name: '{{ item }}'
|
||||
loop:
|
||||
- sys-ctl-cln-bkps
|
||||
- sys-lock
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- name: Include dependencies
|
||||
include_role:
|
||||
name: '{{ item }}'
|
||||
loop:
|
||||
- sys-ctl-cln-bkps
|
||||
- sys-lock
|
||||
- include_tasks: utils/once/flag.yml
|
||||
when: run_once_svc_bkp_loc_2_usb is not defined
|
||||
|
||||
- name: Fail if any backup_to_usb variable is empty
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
- sys-ctl-alm-compose
|
||||
- sys-lock
|
||||
- sys-timer-cln-bkps
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
when: run_once_svc_bkp_rmt_2_loc is not defined
|
||||
|
||||
- name: "Create Directory '{{ DOCKER_BACKUP_REMOTE_2_LOCAL_DIR }}'"
|
||||
|
||||
@@ -15,6 +15,6 @@
|
||||
vars:
|
||||
system_service_on_calendar: "{{ SYS_SCHEDULE_ANIMATION_KEYBOARD_COLOR }}"
|
||||
system_service_timer_enabled: true
|
||||
persistent: true
|
||||
system_service_timer_persistent: true
|
||||
|
||||
- include_tasks: utils/once/flag.yml
|
||||
@@ -11,4 +11,4 @@
|
||||
async: "{{ ASYNC_TIME if ASYNC_ENABLED | bool else omit }}"
|
||||
poll: "{{ ASYNC_POLL if ASYNC_ENABLED | bool else omit }}"
|
||||
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
- block:
|
||||
- name: "For '{{ application_id }}': Load docker-compose"
|
||||
include_role:
|
||||
name: docker-compose
|
||||
vars:
|
||||
docker_compose_flush_handlers: true
|
||||
docker_git_repository_pull: false # Deactivated here to deactivate inhirement
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- name: "For '{{ application_id }}': Load docker-compose"
|
||||
include_role:
|
||||
name: docker-compose
|
||||
vars:
|
||||
docker_compose_flush_handlers: true
|
||||
docker_git_repository_pull: false # Deactivated here to deactivate inhirement
|
||||
- include_tasks: utils/once/flag.yml
|
||||
when: run_once_svc_prx_openresty is not defined
|
||||
@@ -16,4 +16,4 @@
|
||||
|
||||
- include_tasks: 03_permissions_folders.yml
|
||||
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
@@ -4,4 +4,4 @@
|
||||
loop:
|
||||
- sys-bkp-provider-user
|
||||
- sys-timer-cln-bkps
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
@@ -3,7 +3,7 @@
|
||||
include_role:
|
||||
name: dev-yay
|
||||
when: run_once_dev_yay is not defined
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
when: run_once_sys_cli is not defined
|
||||
|
||||
- name: "pkgmgr install infinito"
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
name: '{{ item }}'
|
||||
loop: '{{ SYSTEMCTL_ALARM_COMPOSER_SUBSERVICES }}'
|
||||
vars:
|
||||
flush_handlers: true
|
||||
system_service_timer_enabled: false
|
||||
system_service_copy_files: true
|
||||
system_service_tpl_exec_start: "{{ system_service_script_exec }} %I"
|
||||
@@ -16,7 +15,6 @@
|
||||
include_role:
|
||||
name: sys-service
|
||||
vars:
|
||||
flush_handlers: true
|
||||
system_service_timer_enabled: false
|
||||
system_service_copy_files: true
|
||||
system_service_tpl_exec_start: "{{ system_service_script_exec }} %I"
|
||||
|
||||
@@ -22,4 +22,4 @@
|
||||
name: curl
|
||||
state: present
|
||||
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
@@ -28,4 +28,4 @@
|
||||
system_service_tpl_on_failure: "{{ SYS_SERVICE_ON_FAILURE_COMPOSE }}"
|
||||
# system_service_tpl_exec_start_post: "/usr/bin/systemctl start {{ SYS_SERVICE_CLEANUP_BACKUPS }}" # Not possible to use it because it's a deathlock. Keep this line for documentation purposes
|
||||
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
@@ -1,19 +1,18 @@
|
||||
- block:
|
||||
- name: "pkgmgr install"
|
||||
include_role:
|
||||
name: pkgmgr-install
|
||||
vars:
|
||||
package_name: dockreap
|
||||
|
||||
- include_role:
|
||||
name: sys-service
|
||||
vars:
|
||||
system_service_tpl_on_failure: "{{ SYS_SERVICE_ON_FAILURE_COMPOSE }}"
|
||||
system_service_tpl_exec_start: dockreap --no-confirmation
|
||||
system_service_tpl_exec_start_pre: "" # Anonymous volumes can allways be removed. It isn't necessary to wait for any service to stop.
|
||||
system_service_copy_files: false
|
||||
system_service_force_linear_sync: false
|
||||
- name: "pkgmgr install"
|
||||
include_role:
|
||||
name: pkgmgr-install
|
||||
vars:
|
||||
package_name: dockreap
|
||||
|
||||
- include_role:
|
||||
name: sys-service
|
||||
vars:
|
||||
system_service_tpl_on_failure: "{{ SYS_SERVICE_ON_FAILURE_COMPOSE }}"
|
||||
system_service_tpl_exec_start: dockreap --no-confirmation
|
||||
system_service_tpl_exec_start_pre: "" # Anonymous volumes can allways be removed. It isn't necessary to wait for any service to stop.
|
||||
system_service_copy_files: false
|
||||
system_service_force_linear_sync: false
|
||||
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
when:
|
||||
- run_once_sys_ctl_cln_anon_volumes is not defined
|
||||
- include_tasks: utils/once/flag.yml
|
||||
when: run_once_sys_ctl_cln_anon_volumes is not defined
|
||||
|
||||
@@ -22,6 +22,6 @@
|
||||
system_service_copy_files: true
|
||||
system_service_force_linear_sync: false
|
||||
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
vars:
|
||||
flush_handlers: true
|
||||
- meta: flush_handlers
|
||||
|
||||
- include_tasks: utils/once/flag.yml
|
||||
|
||||
@@ -19,4 +19,4 @@
|
||||
system_service_copy_files: false
|
||||
system_service_force_linear_sync: false
|
||||
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
|
||||
@@ -16,4 +16,4 @@
|
||||
system_service_tpl_exec_start_pre: '/usr/bin/python {{ PATH_SYSTEM_LOCK_SCRIPT }} {{ SYS_SERVICE_GROUP_MANIPULATION | join(" ") }} --ignore {{ SYS_SERVICE_GROUP_CLEANUP | join(" ") }} --timeout "{{ SYS_TIMEOUT_BACKUP_SERVICES }}"'
|
||||
system_service_force_linear_sync: false
|
||||
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
@@ -19,5 +19,5 @@
|
||||
system_service_force_linear_sync: false
|
||||
system_service_force_flush: "{{ MODE_CLEANUP }}"
|
||||
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
when: run_once_sys_ctl_cln_docker is not defined
|
||||
|
||||
@@ -22,4 +22,4 @@
|
||||
system_service_tpl_exec_start_pre: '/usr/bin/python {{ PATH_SYSTEM_LOCK_SCRIPT }} {{ SYS_SERVICE_GROUP_MANIPULATION | join(" ") }} --ignore {{ SYS_SERVICE_GROUP_CLEANUP| join(" ") }} --timeout "{{ SYS_TIMEOUT_CLEANUP_SERVICES }}"'
|
||||
system_service_tpl_exec_start: '/bin/sh -c "{{ CLEANUP_FAILED_BACKUPS_PKG }} --all --workers {{ CLEANUP_FAILED_BACKUPS_WORKERS }} --yes"'
|
||||
system_service_force_linear_sync: false
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
|
||||
@@ -10,4 +10,4 @@
|
||||
system_service_timer_enabled: true
|
||||
system_service_tpl_on_failure: "{{ SYS_SERVICE_ON_FAILURE_COMPOSE }}"
|
||||
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
@@ -23,4 +23,4 @@
|
||||
--nginx-config-dir={{ NGINX.DIRECTORIES.HTTP.SERVERS }}
|
||||
--ignore-network-blocks-from {{ HEALTH_CSP_IGNORE_NETWORK_BLOCKS_FROM | join(' ') }}
|
||||
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
|
||||
@@ -11,4 +11,4 @@
|
||||
system_service_tpl_exec_start: "{{ system_service_script_exec }} {{ SIZE_PERCENT_CLEANUP_DISC_SPACE }}"
|
||||
system_service_tpl_on_failure: "{{ SYS_SERVICE_ON_FAILURE_COMPOSE }} {{ SYS_SERVICE_CLEANUP_DISC_SPACE }}"
|
||||
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
|
||||
@@ -15,4 +15,4 @@
|
||||
system_service_on_calendar: "{{ SYS_SCHEDULE_HEALTH_DOCKER_CONTAINER }}"
|
||||
system_service_tpl_on_failure: "{{ SYS_SERVICE_ON_FAILURE_COMPOSE }} {{ SYS_SERVICE_REPAIR_DOCKER_SOFT }}"
|
||||
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
@@ -11,4 +11,4 @@
|
||||
system_service_tpl_on_failure: "{{ SYS_SERVICE_ON_FAILURE_COMPOSE }} {{ SYS_SERVICE_CLEANUP_ANONYMOUS_VOLUMES }}"
|
||||
system_service_tpl_exec_start: '{{ system_service_script_exec }} "{{ DOCKER_WHITELISTET_ANON_VOLUMES | join(" ") }}"'
|
||||
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
@@ -11,4 +11,4 @@
|
||||
system_service_tpl_on_failure: "{{ SYS_SERVICE_ON_FAILURE_COMPOSE }}"
|
||||
system_service_suppress_flush: true # There are almost allways errors in the journalctl logs so suppression is neccessary to let playbook run
|
||||
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
@@ -13,4 +13,4 @@
|
||||
- not MODE_RESET | bool
|
||||
- users['no-reply'].mailu_token is defined
|
||||
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
@@ -26,4 +26,4 @@
|
||||
--expectations '{{ applications | web_health_expectations(www_enabled=WWW_REDIRECT_ENABLED | bool, group_names=group_names) | to_json }}'
|
||||
system_service_suppress_flush: true # The healthcheck will just work after all routines passed
|
||||
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
- name: Include dependency 'sys-ctl-alm-compose'
|
||||
include_role:
|
||||
name: sys-ctl-alm-compose
|
||||
vars:
|
||||
flush_handlers: true
|
||||
when: run_once_sys_ctl_alm_compose is not defined
|
||||
|
||||
- name: "Ensure cert deploy target directory exists"
|
||||
@@ -16,9 +14,9 @@
|
||||
vars:
|
||||
system_service_state: restarted
|
||||
system_service_on_calendar: "{{ SYS_SCHEDULE_MAINTANANCE_LETSENCRYPT_DEPLOY }}"
|
||||
persistent: "true"
|
||||
system_service_timer_enabled: true
|
||||
system_service_tpl_on_failure: "{{ SYS_SERVICE_ON_FAILURE_COMPOSE }}"
|
||||
system_service_force_linear_sync: false
|
||||
system_service_timer_persistent: true
|
||||
|
||||
- include_tasks: utils/once/flag.yml
|
||||
@@ -17,9 +17,9 @@
|
||||
vars:
|
||||
system_service_copy_files: false
|
||||
system_service_on_calendar: "{{ SYS_SCHEDULE_MAINTANANCE_LETSENCRYPT_RENEW }}"
|
||||
persistent: true
|
||||
system_service_timer_enabled: true
|
||||
system_service_timer_persistent: true
|
||||
system_service_tpl_on_failure: "{{ SYS_SERVICE_ON_FAILURE_COMPOSE }}"
|
||||
system_service_force_linear_sync: false
|
||||
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
@@ -20,4 +20,4 @@
|
||||
system_service_tpl_exec_start: "/bin/sh -c 'btrfs-auto-balancer 90 10'"
|
||||
system_service_force_linear_sync: true
|
||||
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
@@ -14,4 +14,4 @@
|
||||
system_service_tpl_on_failure: "{{ SYS_SERVICE_ON_FAILURE_COMPOSE }}"
|
||||
system_service_force_linear_sync: true
|
||||
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
|
||||
@@ -12,4 +12,4 @@
|
||||
/bin/sh -c '{{ system_service_script_exec }} --manipulation-string "{{ SYS_SERVICE_GROUP_MANIPULATION | join(" ") }}" {{ PATH_DOCKER_COMPOSE_INSTANCES }}'
|
||||
system_service_force_linear_sync: true
|
||||
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
|
||||
@@ -4,5 +4,5 @@
|
||||
when: MODE_RESET | bool and run_once_sys_daemon is not defined
|
||||
- name: Apply systemd manager defaults
|
||||
include_tasks: 02_defaults.yml
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
when: run_once_sys_daemon is not defined
|
||||
@@ -9,4 +9,4 @@
|
||||
cloudflare_async_poll: "{{ ASYNC_POLL }}"
|
||||
when: DNS_PROVIDER == 'cloudflare'
|
||||
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
vars:
|
||||
docker_git_repository_pull: false # Deactivated here to don't inhire this
|
||||
when: run_once_sys_svc_webserver_core is not defined
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
when: run_once_sys_front_inj_all is not defined
|
||||
|
||||
- name: Build inj_enabled for '{{ domain }}'"
|
||||
|
||||
@@ -29,4 +29,4 @@
|
||||
mode: '0644'
|
||||
loop: "{{ CSS_FILES }}"
|
||||
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
@@ -6,4 +6,4 @@
|
||||
group: "{{ NGINX.USER }}"
|
||||
mode: '0644'
|
||||
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
@@ -5,7 +5,5 @@
|
||||
src: sys-lock.py
|
||||
dest: "{{ PATH_SYSTEM_LOCK_SCRIPT }}"
|
||||
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
vars:
|
||||
flush_handlers: false
|
||||
- include_tasks: utils/once/flag.yml
|
||||
when: run_once_sys_lock is not defined
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
include_role:
|
||||
name: user-administrator
|
||||
when: run_once_user_administrator is not defined
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
when: run_once_sys_postfix is not defined
|
||||
|
||||
- name: install postfix
|
||||
|
||||
@@ -7,4 +7,4 @@
|
||||
include_tasks: 02_reset.yml
|
||||
when: MODE_RESET | bool
|
||||
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
@@ -3,7 +3,7 @@
|
||||
include_role:
|
||||
name: sys-svc-webserver-https
|
||||
when: run_once_sys_svc_webserver_https is not defined
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
when: run_once_sys_stk_front_base is not defined
|
||||
|
||||
- include_tasks: "01_cloudflare.yml"
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
group: "{{ NGINX.USER }}"
|
||||
mode: "0755"
|
||||
loop: "{{ CDN_DIRS_GLOBAL }}"
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
when:
|
||||
- run_once_sys_svc_cdn is not defined
|
||||
|
||||
|
||||
@@ -7,4 +7,4 @@
|
||||
include_tasks: 02_no_webroot.yml
|
||||
when: CERTBOT_ACME_CHALLENGE_METHOD != 'webroot'
|
||||
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
@@ -3,7 +3,7 @@
|
||||
include_role:
|
||||
name: sys-svc-webserver-https
|
||||
when: run_once_sys_svc_webserver_https is not defined
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
when: run_once_sys_svc_certs is not defined
|
||||
|
||||
- name: "Include flavor '{{ CERTBOT_FLAVOR }}' for '{{ domain }}'"
|
||||
|
||||
@@ -50,5 +50,5 @@
|
||||
# 'No certificate found with name' not in certbot_delete_result.stderr
|
||||
# changed_when: >
|
||||
# certbot_delete_result.rc == 0
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
when: run_once_sys_svc_cln_domains is not defined
|
||||
|
||||
@@ -36,4 +36,4 @@
|
||||
parent_dns_proxied: false
|
||||
when: run_once_sys_dns_wildcards is not defined
|
||||
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
@@ -3,7 +3,7 @@
|
||||
include_role:
|
||||
name: sys-ctl-hlth-journalctl
|
||||
when: run_once_sys_ctl_hlth_journalctl is not defined
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
when: run_once_sys_svc_journalctl is not defined
|
||||
|
||||
- name: copy journald.conf
|
||||
|
||||
@@ -9,4 +9,4 @@
|
||||
dest: "{{ [ NGINX.DIRECTORIES.HTTP.GLOBAL, 'letsencrypt.conf' ] | path_join }}"
|
||||
notify: restart openresty
|
||||
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
@@ -45,4 +45,4 @@
|
||||
name: sys-ctl-hlth-msmtp
|
||||
when: run_once_sys_ctl_hlth_msmtp is not defined
|
||||
|
||||
- include_tasks: "{{ [playbook_dir, 'roles/docker-compose/tasks/utils/up.yml' ] | path_join }}"
|
||||
- include_tasks: utils/once/flag.yml
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
include_role:
|
||||
name: web-app-mailu
|
||||
public: false
|
||||
vars:
|
||||
flush_handlers: true
|
||||
|
||||
- name: "Reset compose handlers after Mailu include for MSMTP"
|
||||
include_tasks: "{{ [ playbook_dir, 'tasks/utils/load_handlers.yml' ] | path_join }}"
|
||||
|
||||
@@ -11,5 +11,5 @@
|
||||
group: root
|
||||
mode: '0644'
|
||||
notify: sshd restart
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
when: run_once_sys_svc_sshd is not defined
|
||||
|
||||
@@ -38,10 +38,6 @@
|
||||
# Explicit set to guaranty that application_id will not be overwritten.
|
||||
# Should be anyhow the default case
|
||||
public: false
|
||||
|
||||
vars:
|
||||
# Flush openresty handler on first run, so that openresty is up, before openresty related handlers are triggered
|
||||
flush_handlers: true
|
||||
when: run_once_svc_prx_openresty is not defined
|
||||
|
||||
- name: Include health dependencies
|
||||
@@ -50,7 +46,7 @@
|
||||
loop:
|
||||
- sys-ctl-hlth-webserver
|
||||
- sys-ctl-hlth-csp
|
||||
vars:
|
||||
flush_handlers: false
|
||||
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- meta: flush_handlers
|
||||
|
||||
- include_tasks: utils/once/flag.yml
|
||||
|
||||
@@ -7,5 +7,6 @@
|
||||
- sys-svc-cln-domains
|
||||
- sys-svc-letsencrypt
|
||||
- sys-svc-dns
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- meta: flush_handlers
|
||||
- include_tasks: utils/once/flag.yml
|
||||
when: run_once_sys_svc_webserver_https is not defined
|
||||
|
||||
@@ -2,11 +2,7 @@
|
||||
|
||||
- name: Include dependencies
|
||||
include_role:
|
||||
name: '{{ item }}'
|
||||
loop:
|
||||
- sys-ctl-cln-bkps
|
||||
vars:
|
||||
flush_handlers: true
|
||||
name: sys-ctl-cln-bkps
|
||||
|
||||
- name: set system_service_timer_service to sys-ctl-cln-bkps
|
||||
set_fact:
|
||||
|
||||
@@ -4,7 +4,7 @@ Description=Timer to start {{ system_service_timer_service }}{{ SYS_SERVICE_SUFF
|
||||
[Timer]
|
||||
OnCalendar={{ system_service_on_calendar }}
|
||||
RandomizedDelaySec={{ RANDOMIZED_DELAY_SEC }}
|
||||
Persistent={{ persistent | default('false') }}
|
||||
Persistent={{ system_service_timer_persistent | default('false') }}
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
|
||||
@@ -5,7 +5,5 @@
|
||||
upgrade: dist
|
||||
force_apt_get: yes
|
||||
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
vars:
|
||||
flush_handlers: false
|
||||
- include_tasks: utils/once/flag.yml
|
||||
when: run_once_update_apt is not defined
|
||||
@@ -18,4 +18,4 @@
|
||||
- ansible_facts['distribution'] == "Debian"
|
||||
- run_once_update_apt is not defined
|
||||
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
@@ -4,7 +4,5 @@
|
||||
update_cache: yes
|
||||
upgrade: yes
|
||||
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
vars:
|
||||
flush_handlers: false
|
||||
- include_tasks: utils/once/flag.yml
|
||||
when: run_once_update_pacman is not defined
|
||||
@@ -9,5 +9,5 @@
|
||||
name:
|
||||
- code
|
||||
state: present
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
when: run_once_util_desk_dev_core is not defined
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
include_role:
|
||||
name: dev-python-pip
|
||||
when: run_once_dev_python_pip is not defined
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
when: run_once_util_desk_dev_python is not defined
|
||||
|
||||
@@ -14,5 +14,5 @@
|
||||
- fdupes
|
||||
- p7zip
|
||||
state: present
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
when: run_once_util_dev_admin is not defined
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
- name: "Load Coturn Role for '{{ application_id }}'"
|
||||
include_role:
|
||||
name: web-svc-coturn
|
||||
vars:
|
||||
flush_handlers: true
|
||||
when:
|
||||
- run_once_web_svc_coturn is not defined
|
||||
- not BBB_COTURN_ENABLED
|
||||
@@ -10,8 +8,6 @@
|
||||
- name: "Install Collabora Dependency"
|
||||
include_role:
|
||||
name: web-svc-collabora
|
||||
vars:
|
||||
flush_handlers: true
|
||||
when:
|
||||
- run_once_web_svc_collabora is not defined
|
||||
- not BBB_COLLABORA_ENABLED
|
||||
@@ -3,5 +3,7 @@
|
||||
- name: "load docker, db/redis and proxy for {{ application_id }}"
|
||||
include_role:
|
||||
name: sys-stk-full-stateful
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
vars:
|
||||
docker_compose_flush_handlers: true
|
||||
- include_tasks: utils/once/flag.yml
|
||||
when: run_once_web_app_bookwyrm is not defined
|
||||
@@ -1,12 +1,8 @@
|
||||
- name: "Load docker and front proxy for {{ application_id }}"
|
||||
include_role:
|
||||
name: sys-stk-full-stateless
|
||||
|
||||
- name: "Include front proxy for {{ container_hostname}}:{{ ports.localhost.http[application_id] }}"
|
||||
include_role:
|
||||
name: sys-stk-front-proxy
|
||||
vars:
|
||||
domain: "{{ domains | get_domain(application_id) }}"
|
||||
http_port: "{{ ports.localhost.http[application_id] }}"
|
||||
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
@@ -1,6 +1,8 @@
|
||||
- name: "load docker, db and proxy for {{ application_id }}"
|
||||
include_role:
|
||||
name: sys-stk-full-stateful
|
||||
vars:
|
||||
docker_compose_flush_handlers: false
|
||||
|
||||
- name: "Deploy '{{ CHESS_ENTRYPOINT_ABS }}'"
|
||||
copy:
|
||||
@@ -9,4 +11,6 @@
|
||||
notify:
|
||||
- docker compose build
|
||||
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- meta: flush_handlers
|
||||
|
||||
- include_tasks: utils/once/flag.yml
|
||||
|
||||
@@ -3,5 +3,7 @@
|
||||
- name: "load docker, db and proxy for {{ application_id }}"
|
||||
include_role:
|
||||
name: sys-stk-full-stateful
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
vars:
|
||||
docker_compose_flush_handlers: true
|
||||
- include_tasks: utils/once/flag.yml
|
||||
when: run_once_web_app_confluence is not defined
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
- name: "Load brand logos role for '{{ application_id }}'"
|
||||
include_role:
|
||||
name: web-svc-simpleicons
|
||||
vars:
|
||||
flush_handlers: true
|
||||
when:
|
||||
- run_once_web_svc_simpleicons is not defined
|
||||
- DESKTOP_SIMPLEICONS_ENABLED | bool
|
||||
@@ -19,7 +17,7 @@
|
||||
name: sys-stk-full-stateless
|
||||
vars:
|
||||
docker_compose_flush_handlers: false
|
||||
docker_git_repository_address: "https://github.com/kevinveenbirkenbach/port-ui"
|
||||
docker_git_repository_address: "https://github.com/kevinveenbirkenbach/port-ui"
|
||||
docker_git_repository_pull: true
|
||||
|
||||
- name: "Check if host-specific config.yaml exists in {{ DESKTOP_CONFIG_INV_PATH }}"
|
||||
@@ -73,4 +71,4 @@
|
||||
delay: 5
|
||||
until: desktop_http.status == 200
|
||||
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
@@ -8,4 +8,4 @@
|
||||
- name: "Setup '{{ application_id }}' network"
|
||||
include_tasks: 04_network.yml
|
||||
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
@@ -2,8 +2,6 @@
|
||||
- name: "Install Ollama Dependency"
|
||||
include_role:
|
||||
name: svc-ai-ollama
|
||||
vars:
|
||||
flush_handlers: true
|
||||
when:
|
||||
- run_once_svc_ai_ollama is not defined
|
||||
- OLLAMA_LOCAL_ENABLED | bool
|
||||
|
||||
@@ -3,5 +3,7 @@
|
||||
- name: "load docker, db and proxy for {{ application_id }}"
|
||||
include_role:
|
||||
name: sys-stk-full-stateful
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
vars:
|
||||
docker_compose_flush_handlers: true
|
||||
- include_tasks: utils/once/flag.yml
|
||||
when: run_once_web_app_jira is not defined
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
name: sys-stk-full-stateless
|
||||
vars:
|
||||
docker_compose_flush_handlers: false
|
||||
docker_git_repository_address: "{{ LITTLEJS_REPOSITORY_BASE }}.git"
|
||||
docker_git_repository_address: "{{ LITTLEJS_REPOSITORY_BASE }}.git"
|
||||
docker_git_repository_pull: true
|
||||
docker_git_repository_branch: "main"
|
||||
docker_git_repository_branch: "main"
|
||||
|
||||
- name: "Load LittleJS example metadata"
|
||||
include_vars:
|
||||
@@ -32,4 +32,4 @@
|
||||
- name: "flush docker compose for '{{ application_id }}'"
|
||||
meta: flush_handlers
|
||||
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
|
||||
@@ -48,4 +48,4 @@
|
||||
('Magento installation complete' in magento_install.stdout
|
||||
or 'successfully installed' in magento_install.stdout))
|
||||
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
vars:
|
||||
docker_compose_flush_handlers: true
|
||||
docker_git_repository_pull: true
|
||||
docker_git_repository_address: "https://github.com/kevinveenbirkenbach/meta-infinite-graph"
|
||||
docker_git_repository_address: "https://github.com/kevinveenbirkenbach/meta-infinite-graph"
|
||||
|
||||
- include_tasks: 02_cleanup.yml
|
||||
when: MODE_CLEANUP | bool
|
||||
@@ -17,4 +17,4 @@
|
||||
- include_tasks: 03_build_data.yml
|
||||
when: MIG_BUILD_DATA | bool
|
||||
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
|
||||
@@ -5,4 +5,4 @@
|
||||
docker_compose_flush_handlers: true
|
||||
docker_git_repository_pull: false
|
||||
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
- name: "Install OnlyOffice dependency (Document Server)"
|
||||
include_role:
|
||||
name: web-svc-onlyoffice
|
||||
vars:
|
||||
flush_handlers: true
|
||||
when:
|
||||
- run_once_web_svc_onlyoffice is not defined
|
||||
when: run_once_web_svc_onlyoffice is not defined
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
- name: "Install Collabora Dependency"
|
||||
include_role:
|
||||
name: web-svc-collabora
|
||||
vars:
|
||||
flush_handlers: true
|
||||
when:
|
||||
- run_once_web_svc_collabora is not defined
|
||||
when: run_once_web_svc_collabora is not defined
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
- name: "Load Coturn Role for '{{ application_id }}'"
|
||||
include_role:
|
||||
name: web-svc-coturn
|
||||
vars:
|
||||
flush_handlers: true
|
||||
when:
|
||||
- run_once_web_svc_coturn is not defined
|
||||
- NEXTCLOUD_HPB_TURN_STANDALONE_ENABLED | bool
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
- name: "Install Ollama Dependency"
|
||||
include_role:
|
||||
name: svc-ai-ollama
|
||||
vars:
|
||||
flush_handlers: true
|
||||
when:
|
||||
- run_once_svc_ai_ollama is not defined
|
||||
- OLLAMA_LOCAL_ENABLED | bool
|
||||
|
||||
@@ -3,5 +3,7 @@
|
||||
- name: "load docker, db and proxy for {{ application_id }}"
|
||||
include_role:
|
||||
name: sys-stk-full-stateful
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
vars:
|
||||
docker_compose_flush_handlers: true
|
||||
- include_tasks: utils/once/flag.yml
|
||||
when: run_once_web_app_pretix is not defined
|
||||
|
||||
@@ -49,4 +49,4 @@
|
||||
xwiki_oidc_enabled_switch: "{{ XWIKI_OIDC_ENABLED | bool }}"
|
||||
xwiki_ldap_enabled_switch: "{{ XWIKI_LDAP_ENABLED | bool }}"
|
||||
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
|
||||
@@ -3,7 +3,10 @@
|
||||
include_role:
|
||||
name: sys-svc-webserver-https
|
||||
when: run_once_sys_svc_webserver_https is not defined
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
vars:
|
||||
docker_compose_flush_handlers: true
|
||||
- include_tasks: utils/once/flag.yml
|
||||
|
||||
when: run_once_web_opt_rdr_domains is not defined
|
||||
|
||||
- name: "Include domains redirects"
|
||||
|
||||
@@ -28,4 +28,4 @@
|
||||
async: "{{ ASYNC_TIME if ASYNC_ENABLED | bool else omit }}"
|
||||
poll: "{{ ASYNC_POLL if ASYNC_ENABLED | bool else omit }}"
|
||||
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
@@ -4,5 +4,6 @@
|
||||
vars:
|
||||
docker_compose_file_creation_enabled: true
|
||||
docker_git_repository_pull: false
|
||||
docker_compose_flush_handlers: true
|
||||
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
@@ -5,5 +5,5 @@
|
||||
loop:
|
||||
- sys-stk-front-proxy
|
||||
- dev-git
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
when: run_once_web_svc_file is not defined
|
||||
|
||||
@@ -5,5 +5,5 @@
|
||||
loop:
|
||||
- sys-stk-front-proxy
|
||||
- dev-git
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
when: run_once_web_svc_html is not defined
|
||||
|
||||
@@ -2,5 +2,5 @@
|
||||
- name: "load docker, db and proxy for {{ application_id }}"
|
||||
include_role:
|
||||
name: sys-stk-full-stateful
|
||||
- include_tasks: utils/once/finalize.yml
|
||||
- include_tasks: utils/once/flag.yml
|
||||
when: run_once_web_svc_libretranslate is not defined
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user