Using Ansible with REST APIs | Opensource.com
opensource.com › article › 21Sep 30, 2021 · In this post, I'll go through a fairly simple example of how to call a REST API and use the data from that call to decide what to do next. This works with Ansible 2.9 and higher. In later versions (specifically v4), the modules we use need to be prepended with ansible.builtin like ansible.builtin.set_fact instead of just set_fact .
Ansible - Interacting with external REST API
linuxctl.com › 2017 › 01Jan 20, 2017 · Ansible has many powerful modules. One of which is called uriwhich is capable of sending any kind of HTTPrequest. Using this module, it is fairly simple to allow ansible to intelligently talk to a REST API. This will come in handy during for automation of the sensumonitoring docker infrastructure I am currently working on. Table of Contents