Hello when attempting to run a ansible play via bash script on a remote RHEL 9 node i am getting "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'". This play is using the infoblox plugin to lookup ip addresses, it works great if i run on the remote node local CLI however when triggered from rundeck to the RHEL 9 node i get this error. From my testing it appears to be related to the password and special characters but im not 100% sure. Any ideas on how to troubleshoot?
Not working(trigger from rundeck): rundeck -> shell script -> ansible-playbook -> infoblox module
Working(local CLI on RHEL Node): ansible-playbook -> infoblox module
250 - name: Get next available IP address in given subnet with exclusions
251 ansible.builtin.set_fact:
252 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'"
}
Be the first to reply!
Login to PagerDuty Commons
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.