The lookup plugin 'nios_next_ip' failed: a bytes-like object is required, not 'str'

5 views
Skip to first unread message

Lucas Weir

unread,
Oct 8, 2025, 2:06:16 PM (23 hours ago) Oct 8
to rundeck-discuss
Hello i have a strange issue where i am trying to run an Infoblox ansible playbook on a remote RHEL 9 node. When i run the playbook on the RHEL 9 node local CLI it works perfectly, however when i run from rundeck with the same exact parameters i get the following error. It appears to be related to special characters in a password. If i supply the wrong password i get access denied response. Any ideas on why this would occur when running from rundeck?


TASK [infoblox : Get next available IP address in given subnet with exclusions] ***
task path: /home/rundeck/asap-automation/roles/infoblox/tasks/main.yml:247
[WARNING]: WorkerProcess for [localhost/TASK: infoblox : Get next available IP address in given subnet with exclusions] errantly sent data directly to stderr instead of using Display:
Bad WAPI credentials or Cookie timeout. Re-authenticating and retrying the request.
Clearing cookies and re-authenticating.
Re-authenticating with username and password.
redirecting (type: lookup) ansible.builtin.nios_next_ip to community.general.nios_next_ip
redirecting (type: lookup) community.general.nios_next_ip to infoblox.nios_modules.nios_next_ip
[ERROR]: Task failed: Finalization of task args for 'ansible.builtin.set_fact' failed: Error while resolving value for 'infoblox_next_ip': The lookup plugin 'nios_next_ip' failed: a bytes-like object is required, not 'str'
Task failed.
Origin: /home/rundeck/asap-automation/roles/infoblox/tasks/main.yml:247:3
245 - SSL Verify: "{{ infoblox_ssl_verify_bool | type_debug }}" = "{{ infoblox_ssl_verify_bool }}"
246
247 - name: Get next available IP address in given subnet with exclusions
^ column 3
<<< caused by >>>
Finalization of task args for 'ansible.builtin.set_fact' failed.
Origin: /home/rundeck/asap-automation/roles/infoblox/tasks/main.yml:248:3
246
247 - name: Get next available IP address in given subnet with exclusions
248 ansible.builtin.set_fact:
^ column 3
<<< caused by >>>
Error while resolving value for 'infoblox_next_ip': The lookup plugin 'nios_next_ip' failed.
Origin: /home/rundeck/asap-automation/roles/infoblox/tasks/main.yml:249:23
247 - name: Get next available IP address in given subnet with exclusions
248 ansible.builtin.set_fact:
249 infoblox_next_ip: >-
^ column 23
<<< caused by >>>
a bytes-like object is required, not 'str'
fatal: [localhost]: FAILED! => {
"changed": false,
"msg": "Task failed: Finalization of task args for 'ansible.builtin.set_fact' failed: Error while resolving value for 'infoblox_next_ip': The lookup plugin 'nios_next_ip' failed: a bytes-like object is required, not 'str'"
}

Reply all
Reply to author
Forward
0 new messages