I was able to create an ansible module for getting\modifying custom properties. Thanks to hailaeos and Asa Gage

3323.manage-orion_custom_property.zip

I was able to create an ansible module for getting\modifying custom properties. Thanks to hailaeos and Asa Gage

Here is the beta version of it.  I have only tested using the IP as the lookup for the node.  

to get the value of the customp_name just leave off customp_val

to modify the custom property value set customp_val to your required value.

Gacha:
The module does a compare.

if module.params['customp_val'].lower() == str(old_customproprty_val).lower():
example: "False" == false did not result in TRUE
fix: "false" == "false" results in TRUE
You can see from the above code that I convert to lower strings. This will result in values that are case sensitive to not be changed.  I am sure there is a better way but I am drawing a blank.