mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-12-08 18:35:11 +00:00
Add container-aware execution logic and CI stability fixes
- Introduce global IS_CONTAINER flag based on ansible_virtualization facts - Skip systemd-based handlers and tasks when running inside containers - Extend EXCLUDED_ROLES list in GitHub Actions test-deploy workflow - Ensure docker.sock is mounted for all CI deploy stages - Improve sys-svc-docker by suppressing service restarts inside containers - Add meta: flush_handlers to properly trigger delayed docker restarts - Update sys-service handlers with container guards - Update sys-timer tasks to avoid systemctl inside CI containers - Enhance drv-non-free role with Manjaro detection and mhwd fallback warning - Skip swapfile generation in containers - Minor service template fixes and cleanup in proxy.conf.j2 Details and discussion: https://chatgpt.com/share/6930a4ca-56f4-800f-9b3d-4791f040a03b
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
---
|
||||
- name: docker restart
|
||||
service:
|
||||
ansible.builtin.service:
|
||||
name: docker.service
|
||||
state: restarted
|
||||
enabled: yes
|
||||
when: not (IS_CONTAINER | bool)
|
||||
|
||||
@@ -8,6 +8,9 @@
|
||||
state: present
|
||||
notify: docker restart
|
||||
|
||||
- name: Restart and enable docker service
|
||||
meta: flush_handlers
|
||||
|
||||
- name: Setup Swapfile to prevent OOM Failures
|
||||
# @ See https://en.wikipedia.org/wiki/Out_of_memory
|
||||
include_role:
|
||||
|
||||
Reference in New Issue
Block a user