Posts

Showing posts with the label uri

Driving PowerOne API with Ansible

Image
The Ansible community is massive, so it is no surprise that version 2.9 came out with more than 3600 modules. This number keeps growing and it is motivating a change in how modules are distributed in the future. To read more about these changes you can read from Jeff Geerling himself However sometimes still you will come across with either: some functionality that hasn't been implemented on a module or a target for which there are no modules What do you do then? You have a few options: create your own module. This can be done in Python and even if you are not a Python guru you can find many tutorials that don't look intimidating at all you use the "shell" or "command" modules to run some other script if your target can be managed through a REST API then you can use the "uri" module REST API's are the basis for many automation tasks nowadays. An advantage of building automation through the API is that the workflow you build...