This commit is contained in:
user 2025-12-07 08:06:44 -06:00
parent 47e5571a49
commit a36ea03119
25 changed files with 127 additions and 81 deletions

View file

@ -16,10 +16,16 @@
with_items: "{{ service_files.files }}"
when: service_files is defined
- name: Combine predefined list and filesystem paths
set_fact:
systemd_service: "{{ systemd_service | union(service_files.files | map(attribute='path') | map('basename')) | unique }}"
when: service_files is defined
systemd_service: "{{ systemd_service | default([]) | union(service_files.files | map(attribute='path') | map('basename')) | unique }}"
when: service_files is defined
#- name: Combine predefined list and filesystem paths
# set_fact:
# systemd_service: "{{ systemd_service | union(service_files.files | map(attribute='path') | map('basename')) | unique }}"
# when: service_files is defined
- name: Enable Systemd Services
ansible.builtin.systemd_service: