Skip to content

Commit

Permalink
Run restart service handler as root
Browse files Browse the repository at this point in the history
Without this the handler that should restart the service always errors
out when something about a podman service changes:

    RUNNING HANDLER [podman : restart podman service]
    fatal: [server]: FAILED! => {"changed": false, "msg": "failure 1 during daemon-reload: Failed to reload daemon: Method call timed out\n"}
  • Loading branch information
rndwb committed Sep 16, 2020
1 parent f52ab01 commit 6cd4031
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions handlers/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---

- name: "restart podman service"
become: true
become_user: root
systemd:
name: "{{ __podman_service_name }}"
state: restarted
Expand Down

0 comments on commit 6cd4031

Please sign in to comment.