19 lines
506 B
Plaintext
19 lines
506 B
Plaintext
# {{ ansible_managed }}
|
||
|
||
[Unit]
|
||
Description={{ item.name }}
|
||
After=network.target
|
||
|
||
[Service]
|
||
Type=oneshot
|
||
{% if item.cmd is defined %}
|
||
ExecStart={{ item.cmd }} && /usr/bin/curl -s --retry 5 -o /dev/null {{ hcio_url }}/ping/{{ uuid }}
|
||
{% elif item.script is defined %}
|
||
ExecStart={{ hcio_path }}/scripts/{{ item.script | basename }} "{{ hcio_url }}/ping/{{ uuid }}"
|
||
{% else %}
|
||
ExecStart=/usr/bin/curl -s --retry 5 -o /dev/null {{ hcio_url }}/ping/{{ uuid }}
|
||
{% endif %}
|
||
|
||
[Install]
|
||
WantedBy=multi-user.target
|