mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-12-08 18:35:11 +00:00
- 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
20 lines
557 B
YAML
20 lines
557 B
YAML
# run_once_sys_timer: deactivated
|
|
|
|
- name: create {{ sys_timer_file }}
|
|
template:
|
|
src: dummy.timer.j2
|
|
dest: "{{ [ PATH_SYSTEM_SERVICE_DIR, sys_timer_file ] | path_join }}"
|
|
register: dummy_timer
|
|
|
|
- name: "restart timer"
|
|
systemd:
|
|
daemon_reload: yes
|
|
name: "{{ sys_timer_file }}"
|
|
state: restarted
|
|
enabled: yes
|
|
when:
|
|
- dummy_timer.changed or SYS_TIMER_ALL_ENABLED | bool
|
|
- not (IS_CONTAINER | bool)
|
|
async: "{{ ASYNC_TIME if ASYNC_ENABLED | bool else omit }}"
|
|
poll: "{{ ASYNC_POLL if ASYNC_ENABLED | bool else omit }}"
|