mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-11-26 06:43:10 +00:00
- Replace jvm_filters with unified memory_filters (JVM + Redis helpers) - Add redis_maxmemory_mb filter and unit tests - Introduce sys-ctl-cln-docker role (systemd-based Docker prune + anon volumes) - Refactor disk space health check to Python script and wire SIZE_PERCENT_CLEANUP_DISC_SPACE - Adjust schedules and services for Docker cleanup and disk space health See discussion: https://chatgpt.com/share/6925c1c5-ee38-800f-84b6-da29ccfa7537
28 lines
783 B
YAML
28 lines
783 B
YAML
- name: docker & docker compose install
|
|
community.general.pacman:
|
|
name:
|
|
- 'docker'
|
|
- 'docker-compose'
|
|
state: present
|
|
notify: docker restart
|
|
|
|
- name: Setup Swapfile to prevent OOM Failures
|
|
# @ See https://en.wikipedia.org/wiki/Out_of_memory
|
|
include_role:
|
|
name: "svc-opt-swapfile"
|
|
when: run_once_svc_opt_swapfile is not defined
|
|
|
|
- name: "Load reset tasks when MODE_RESET is enabled"
|
|
include_tasks: "02_reset.yml"
|
|
when: MODE_RESET | bool
|
|
|
|
- name: Include backup, repair and health services for docker
|
|
include_role:
|
|
name: "{{ item }}"
|
|
loop:
|
|
- sys-ctl-cln-docker
|
|
- sys-ctl-bkp-docker-2-loc
|
|
- sys-ctl-hlth-docker-container
|
|
- sys-ctl-hlth-docker-volumes
|
|
- sys-ctl-rpr-docker-hard
|
|
when: SYS_SVC_DOCKER_LOAD_SERVICES | bool |