diff --git a/tasks/main.yml b/tasks/main.yml index 077388581c40d2cb97ce1bd946c1e62fd18a03c6..1239ff648ed2f25616c149465dc242bb58632cb7 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,6 +1,5 @@ --- - name: Upload files and enable timer - block: - name: Uploading service file template: @@ -23,9 +22,9 @@ - name: Enabling timers systemd: name: "{{ item.key }}.timer" - state: restarted enabled: true masked: false scope: "{{ systemd_scope | default('system') }}" with_dict: "{{ timers }}" - notify: Reload systemd + notify: Reload systemd + become: true