using AWX and provisioning callbacks after satellite installation.
Now i try to modify an infoblox entry using the infoblox client integration for linux.
problem is, during the execution of the callback curl html header limits my play execution on AWX to the specific host. How to extend this limit in a provisioning callback? Or how to do tasks on a second host, which is not executing the callback itself, but part of the inventory?
TASK [delte an A record] *******************************************************fatal: [ltesthost.bla]: FAILED! => {“changed”: false, “msg”: “infoblox-client is required but does not appear to be installed. It can be installed using the command pip install infoblox-client”}
if i change my play to:
name: infoblox Record change
hosts: infoblox.bla
gather_facts: no
vars:
tasks:
name: delte an A record
infoblox.nios_modules.nios_a_record:
Get error:
PLAY [infoblox Record change] ************************************************skipping: no hosts matched
because provisioning callback is not addressing my infoblox.bla
Set the hosts to all and delegate the task for infoblox. You won’t be able to adjust the callback limit. You could look at event driven ansible for more capabilities in handling webhooks as an alternative.
Create an execution environment that includes the infoblox client ( ansible-builder ). Then you can delegate_tolocalhost and run the infoblox.nios_modules.nios_a_record module there while it is limited from the callback. Alternatively, you can just delegate_to the necessary calls to your infoblox host.
---
- hosts: all
tasks:
- name: Delegate to a host not covered by the `--limit`
ansible.builtin.debug:
msg: This task has been delegated
delegate_to: host2