mirror of
https://github.com/fscotto/infra.git
synced 2026-05-30 15:39:58 +00:00
Add enabled_services_only list to services_systemd role for services that should be enabled at boot but not started immediately. Move gdm to this list on Arch to avoid starting the display manager mid-provisioning. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
30 lines
734 B
YAML
30 lines
734 B
YAML
---
|
|
- name: Enable base systemd services
|
|
tags: [services, packages]
|
|
ansible.builtin.systemd:
|
|
name: "{{ item }}"
|
|
enabled: true
|
|
state: started
|
|
loop: "{{ enabled_services | default([]) }}"
|
|
loop_control:
|
|
label: "{{ item }}"
|
|
|
|
- name: Enable host systemd services
|
|
tags: [services, packages]
|
|
ansible.builtin.systemd:
|
|
name: "{{ item }}"
|
|
enabled: true
|
|
state: started
|
|
loop: "{{ host_enabled_services | default([]) }}"
|
|
loop_control:
|
|
label: "{{ item }}"
|
|
|
|
- name: Enable systemd services without starting them
|
|
tags: [services, packages]
|
|
ansible.builtin.systemd:
|
|
name: "{{ item }}"
|
|
enabled: true
|
|
loop: "{{ enabled_services_only | default([]) }}"
|
|
loop_control:
|
|
label: "{{ item }}"
|