Register actual container as systemd service

This service is scoped to the user only but ensures that the container
is started on system boot.
This commit is contained in:
Thomas Kleinendorst 2024-04-16 17:04:45 +02:00
parent 6a2c50686b
commit 462e202737
4 changed files with 49 additions and 21 deletions

View file

@ -9,3 +9,9 @@
ansible.builtin.systemd:
name: ufw.service
state: restarted
- name: Reload systemd (daemon-reload)
become: true
become_user: "{{ actual_username }}"
ansible.builtin.systemd_service:
daemon_reload: true
scope: user