So I have a little PB that makes and API call to get some data:
-
name: API Commmand to get Snipe-IT List User asests checked out
ansible.builtin.uri:
url: http://snipeit.xxx.com/api/v1/users/{{uuid}}/assets
headers:
Authorization: ‘{{ snipe }}’
Content-Type: “application/json”
method: GET
return_content: yes
status_code: -
200
register: asset_content -
debug:
msg: ‘{{asset_content.json }}’