Update roles and netbox inventory
This commit is contained in:
@@ -5,18 +5,21 @@ After=network.target
|
||||
[Service]
|
||||
Type=simple
|
||||
TimeoutStartSec={{ systemd_TimeoutStartSec }}
|
||||
ExecStartPre=-/usr/bin/podman rm {{ container_name }}
|
||||
ExecStartPre=-/usr/bin/rm -f {{ pidfile }} {{ cidfile }}
|
||||
User={{ container_run_as_user }}
|
||||
|
||||
ExecStart=/usr/bin/podman run --name {{ container_name }} \
|
||||
{{ container_run_args }} \
|
||||
{{ container_image }}
|
||||
--conmon-pidfile {{ pidfile }} --cidfile {{ cidfile }} \
|
||||
{{ container_image }} {% if container_cmd_args is defined %} \
|
||||
{{ container_cmd_args }} {% endif %}
|
||||
|
||||
ExecReload=-/usr/bin/podman stop "{{ container_name }}"
|
||||
ExecReload=-/usr/bin/podman rm "{{ container_name }}"
|
||||
ExecStop=-/usr/bin/podman stop "{{ container_name }}"
|
||||
ExecStop=/usr/bin/sh -c "/usr/bin/podman stop -t "{{ container_stop_timeout }}" `cat {{ cidfile }}`"
|
||||
ExecStop=/usr/bin/sh -c "/usr/bin/podman rm -f `cat {{ cidfile }}`"
|
||||
Restart={{ container_restart }}
|
||||
RestartSec={{ systemd_RestartSec }}
|
||||
KillMode=none
|
||||
PIDFile={{ pidfile }}
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
Reference in New Issue
Block a user