mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-12-09 02:45:17 +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
22 lines
634 B
YAML
22 lines
634 B
YAML
- name: "Enable systemctl service"
|
|
systemd:
|
|
name: "{{ system_service_name }}"
|
|
enabled: yes
|
|
daemon_reload: true
|
|
become: true
|
|
async: "{{ system_service_async }}"
|
|
poll: "{{ system_service_poll }}"
|
|
listen: refresh systemctl service
|
|
when: not (IS_CONTAINER | bool)
|
|
|
|
- name: "Set systemctl service state"
|
|
systemd:
|
|
name: "{{ system_service_name }}"
|
|
state: "{{ system_service_state }}"
|
|
become: true
|
|
async: "{{ system_service_async }}"
|
|
poll: "{{ system_service_poll }}"
|
|
when:
|
|
- not (system_service_suppress_flush | bool)
|
|
- not (IS_CONTAINER | bool)
|
|
listen: refresh systemctl service |