hmm
All checks were successful
CI / test (push) Successful in 4m58s
Lint / test (push) Successful in 29s
Trivy / test (push) Successful in 18s

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

View file

@ -382,7 +382,7 @@ Unowned /etc config files not attributed to packages or services.
f""" f"""
- name: Probe whether systemd unit exists and is manageable - name: Probe whether systemd unit exists and is manageable
ansible.builtin.systemd: ansible.builtin.systemd:
name: "{{ unit_name }}" name: "{{{{ unit_name }}}}"
check_mode: true check_mode: true
register: _unit_probe register: _unit_probe
failed_when: false failed_when: false
@ -390,13 +390,13 @@ Unowned /etc config files not attributed to packages or services.
- name: Ensure unit 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 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
when: when:
- _unit_probe is succeeded - _unit_probe is succeeded