Ansible Modules Data Type Update
- 26 May 2023
-
DarkLight
-
PDF
Ansible Modules Data Type Update
- Updated on 26 May 2023
-
DarkLight
-
PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Ansible Modules Data Type Update in IAG (2020.2)
Beginning with Itential Automation Gateway (IAG) 2020.2, for Ansible modules with argument type integer
, IAG outputs them as type number
in their module schema. This update provides a consistent schema between IAG Ansible modules and Itential Automation Platform (IAP) workflow tasks.
Problem Explanation
Ansible modules are written in Python and the primary argument types are integer
. The IAP workflow engine schema is based on JavaScript Object Notation (JSON). The schema validator used by Itential prefers number
over int/float numeric types. Hence, workflow engine saved all data type integer as string in the database and issued a warning whenever the user saved a workflow task.
How to Run the Data Type Update
To run the update:
- Make sure both IAP and IAG are on 2020.2
- Users that have a pre-existent AG Manager pronghorn.json should invoke the
undiscoverAll
task to restore pronghorn.json to its original state. - Make sure all IAG instances are also running 2020.2
- Connect IAG one-by-one (or restart the IAG adapter in IAP) to complete the update of pronghorn.json in AG Manager.
Was this article helpful?