I simply copied the 2.0 uir.py into my ./modules. It supports body_format=json which will convert the body dict into json as well as set the appropriate headers.
Indeed I have done this for several modules that are scheduled for 2.0 or are pending PRs. Ansible is incredibly flexible in this manner. Just need be sure to clean up the hacks when the modules are actually released. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/3aafa644-7fa4-429d-98e6-ae5761742d9b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
