Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ After=network-online.target

[Service]
Type=oneshot
TimeoutStartSec=300s
<% if host_param('ansible_extra_vars') -%>
ExecStart=/usr/bin/curl -k -s -H 'Content-Type: application/json' --data '{"host_config_key":"<%= host_param('ansible_host_config_key') %>", "extra_vars": <%=host_param('ansible_extra_vars') %>}' <%= host_param('ansible_tower_api_url') %>/job_templates/<%= host_param('ansible_job_template_id') %>/callback/
ExecStart=/usr/bin/curl -k -sS -f --connect-timeout 10 --retry 11 --retry-delay 5 --retry-all-errors -H 'Content-Type: application/json' --data '{"host_config_key":"<%= host_param('ansible_host_config_key') %>", "extra_vars": <%= host_param('ansible_extra_vars') %>}' <%= host_param('ansible_tower_api_url') %>/job_templates/<%= host_param('ansible_job_template_id') %>/callback/
<% else -%>
ExecStart=/usr/bin/curl -k -s --data "host_config_key=<%= host_param('ansible_host_config_key') -%>" <%= host_param('ansible_tower_api_url') -%>/job_templates/<%= host_param('ansible_job_template_id') -%>/callback/
ExecStart=/usr/bin/curl -k -sS -f --connect-timeout 10 --retry 11 --retry-delay 5 --retry-all-errors --data "host_config_key=<%= host_param('ansible_host_config_key') -%>" <%= host_param('ansible_tower_api_url') -%>/job_templates/<%= host_param('ansible_job_template_id') -%>/callback/
<% end -%>
ExecStartPost=/usr/bin/systemctl disable ansible-callback

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ After=network-online.target

[Service]
Type=oneshot
ExecStart=/usr/bin/curl -k -s --data "host_config_key=" https://host.example.com/api/controller/v2/job_templates/20/callback/
TimeoutStartSec=300s
ExecStart=/usr/bin/curl -k -sS -f --connect-timeout 10 --retry 11 --retry-delay 5 --retry-all-errors --data "host_config_key=" https://host.example.com/api/controller/v2/job_templates/20/callback/
ExecStartPost=/usr/bin/systemctl disable ansible-callback

[Install]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ After=network-online.target

[Service]
Type=oneshot
ExecStart=/usr/bin/curl -k -s --data "host_config_key=" https://host.example.com/api/controller/v2/job_templates/20/callback/
TimeoutStartSec=300s
ExecStart=/usr/bin/curl -k -sS -f --connect-timeout 10 --retry 11 --retry-delay 5 --retry-all-errors --data "host_config_key=" https://host.example.com/api/controller/v2/job_templates/20/callback/
ExecStartPost=/usr/bin/systemctl disable ansible-callback

[Install]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,8 @@ After=network-online.target

[Service]
Type=oneshot
ExecStart=/usr/bin/curl -k -s --data "host_config_key=" https://host.example.com/api/controller/v2/job_templates/20/callback/
TimeoutStartSec=300s
ExecStart=/usr/bin/curl -k -sS -f --connect-timeout 10 --retry 11 --retry-delay 5 --retry-all-errors --data "host_config_key=" https://host.example.com/api/controller/v2/job_templates/20/callback/
ExecStartPost=/usr/bin/systemctl disable ansible-callback

[Install]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,8 @@ After=network-online.target

[Service]
Type=oneshot
ExecStart=/usr/bin/curl -k -s --data "host_config_key=" https://host.example.com/api/controller/v2/job_templates/20/callback/
TimeoutStartSec=300s
ExecStart=/usr/bin/curl -k -sS -f --connect-timeout 10 --retry 11 --retry-delay 5 --retry-all-errors --data "host_config_key=" https://host.example.com/api/controller/v2/job_templates/20/callback/
ExecStartPost=/usr/bin/systemctl disable ansible-callback

[Install]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,8 @@ After=network-online.target

[Service]
Type=oneshot
ExecStart=/usr/bin/curl -k -s --data "host_config_key=" https://host.example.com/api/controller/v2/job_templates/20/callback/
TimeoutStartSec=300s
ExecStart=/usr/bin/curl -k -sS -f --connect-timeout 10 --retry 11 --retry-delay 5 --retry-all-errors --data "host_config_key=" https://host.example.com/api/controller/v2/job_templates/20/callback/
ExecStartPost=/usr/bin/systemctl disable ansible-callback

[Install]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,8 @@ After=network-online.target

[Service]
Type=oneshot
ExecStart=/usr/bin/curl -k -s --data "host_config_key=" https://host.example.com/api/controller/v2/job_templates/20/callback/
TimeoutStartSec=300s
ExecStart=/usr/bin/curl -k -sS -f --connect-timeout 10 --retry 11 --retry-delay 5 --retry-all-errors --data "host_config_key=" https://host.example.com/api/controller/v2/job_templates/20/callback/
ExecStartPost=/usr/bin/systemctl disable ansible-callback

[Install]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,8 @@ After=network-online.target

[Service]
Type=oneshot
ExecStart=/usr/bin/curl -k -s --data "host_config_key=" https://host.example.com/api/controller/v2/job_templates/20/callback/
TimeoutStartSec=300s
ExecStart=/usr/bin/curl -k -sS -f --connect-timeout 10 --retry 11 --retry-delay 5 --retry-all-errors --data "host_config_key=" https://host.example.com/api/controller/v2/job_templates/20/callback/
ExecStartPost=/usr/bin/systemctl disable ansible-callback

[Install]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ After=network-online.target

[Service]
Type=oneshot
ExecStart=/usr/bin/curl -k -s --data "host_config_key=" https://host.example.com/api/controller/v2/job_templates/20/callback/
TimeoutStartSec=300s
ExecStart=/usr/bin/curl -k -sS -f --connect-timeout 10 --retry 11 --retry-delay 5 --retry-all-errors --data "host_config_key=" https://host.example.com/api/controller/v2/job_templates/20/callback/
ExecStartPost=/usr/bin/systemctl disable ansible-callback

[Install]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ After=network-online.target

[Service]
Type=oneshot
ExecStart=/usr/bin/curl -k -s --data "host_config_key=" https://host.example.com/api/controller/v2/job_templates/20/callback/
TimeoutStartSec=300s
ExecStart=/usr/bin/curl -k -sS -f --connect-timeout 10 --retry 11 --retry-delay 5 --retry-all-errors --data "host_config_key=" https://host.example.com/api/controller/v2/job_templates/20/callback/
ExecStartPost=/usr/bin/systemctl disable ansible-callback

[Install]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,8 @@ After=network-online.target

[Service]
Type=oneshot
ExecStart=/usr/bin/curl -k -s --data "host_config_key=" https://host.example.com/api/controller/v2/job_templates/20/callback/
TimeoutStartSec=300s
ExecStart=/usr/bin/curl -k -sS -f --connect-timeout 10 --retry 11 --retry-delay 5 --retry-all-errors --data "host_config_key=" https://host.example.com/api/controller/v2/job_templates/20/callback/
ExecStartPost=/usr/bin/systemctl disable ansible-callback

[Install]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,8 @@ After=network-online.target

[Service]
Type=oneshot
ExecStart=/usr/bin/curl -k -s --data "host_config_key=" https://host.example.com/api/controller/v2/job_templates/20/callback/
TimeoutStartSec=300s
ExecStart=/usr/bin/curl -k -sS -f --connect-timeout 10 --retry 11 --retry-delay 5 --retry-all-errors --data "host_config_key=" https://host.example.com/api/controller/v2/job_templates/20/callback/
ExecStartPost=/usr/bin/systemctl disable ansible-callback

[Install]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,8 @@ After=network-online.target

[Service]
Type=oneshot
ExecStart=/usr/bin/curl -k -s --data "host_config_key=" https://host.example.com/api/controller/v2/job_templates/20/callback/
TimeoutStartSec=300s
ExecStart=/usr/bin/curl -k -sS -f --connect-timeout 10 --retry 11 --retry-delay 5 --retry-all-errors --data "host_config_key=" https://host.example.com/api/controller/v2/job_templates/20/callback/
ExecStartPost=/usr/bin/systemctl disable ansible-callback

[Install]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ After=network-online.target

[Service]
Type=oneshot
ExecStart=/usr/bin/curl -k -s --data "host_config_key=" https://host.example.com/api/controller/v2/job_templates/20/callback/
TimeoutStartSec=300s
ExecStart=/usr/bin/curl -k -sS -f --connect-timeout 10 --retry 11 --retry-delay 5 --retry-all-errors --data "host_config_key=" https://host.example.com/api/controller/v2/job_templates/20/callback/
ExecStartPost=/usr/bin/systemctl disable ansible-callback

[Install]
Expand Down
Loading