Attempt fix for unit name
Some checks failed
CI / test (push) Failing after 4m44s
Lint / test (push) Successful in 27s
Trivy / test (push) Successful in 21s

This commit is contained in:
Miguel Jacq 2025-12-15 12:49:50 +11:00
parent c6f174dd55
commit 019f6bf6f3
Signed by: mig5
GPG key ID: 59B3F0C24135C6A9

View file

@ -388,13 +388,13 @@ Unowned /etc config files not attributed to packages or services.
failed_when: false failed_when: false
changed_when: false changed_when: false
- name: Ensure {{ unit_name }} is enabled (preserve running state) - name: Ensure unit is enabled (preserve running state)
ansible.builtin.systemd: ansible.builtin.systemd:
name: "{{ unit_name }}" name: "{{ unit_name }}"
enabled: true enabled: true
when: _unit_probe is succeeded when: _unit_probe is succeeded
- name: Start {{ unit_name }} if it was active at harvest time - name: Start unit if it was active at harvest time
ansible.builtin.systemd: ansible.builtin.systemd:
name: "{{ unit_name }}" name: "{{ unit_name }}"
state: started state: started