diff --git a/roles/unifi/tasks/deploy.yml b/roles/unifi/tasks/deploy.yml index 45d7f6a..64e7f7d 100644 --- a/roles/unifi/tasks/deploy.yml +++ b/roles/unifi/tasks/deploy.yml @@ -54,7 +54,7 @@ - reload systemd - restart unifi tags: - - systemd + - container - name: flush_handlers meta: flush_handlers diff --git a/roles/unifi/templates/unifi.container.j2 b/roles/unifi/templates/unifi.container.j2 index ecb2569..b15ead5 100644 --- a/roles/unifi/templates/unifi.container.j2 +++ b/roles/unifi/templates/unifi.container.j2 @@ -13,6 +13,7 @@ VolatileTmp=yes Notify=yes [Service] +Restart=always PrivateTmp=yes ProtectClock=yes ProtectHome=yes