mirror of
https://github.com/ZwareBear/awx.git
synced 2026-05-17 03:18:36 -05:00
Remove refresh_inventory flag for callbacks; make it the default behavior instead.
This commit is contained in:
@@ -18,16 +18,9 @@ The response will return status 202 if the request is valid, 403 for an
|
||||
invalid host config key, or 400 if the host cannot be determined from the
|
||||
address making the request.
|
||||
|
||||
_(New in Ansible Tower 2.0.0)_ By default, the host must already be present in
|
||||
inventory for the callback to succeed. The `refresh_inventory` parameter can
|
||||
be passed to the callback to trigger an inventory sync prior to searching for
|
||||
the host and running the job. The associated inventory must have the
|
||||
`update_on_launch` flag set and will only refresh if the `update_cache_timeout`
|
||||
has expired.
|
||||
|
||||
For example, using curl:
|
||||
|
||||
curl --data-urlencode "host_config_key=HOST_CONFIG_KEY&refresh_inventory=1" http://server/api/v1/job_templates/N/callback/
|
||||
_(New in Ansible Tower 2.0.0)_ If the associated inventory has the
|
||||
`update_on_launch` flag set and if the `update_cache_timeout` has expired, the
|
||||
callback will perform an inventory sync to find a matching host.
|
||||
|
||||
A GET request may be used to verify that the correct host will be selected.
|
||||
This request must authenticate as a valid user with permission to edit the
|
||||
|
||||
Reference in New Issue
Block a user