hmm
This commit is contained in:
parent
019f6bf6f3
commit
d8fb33f0d0
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue