I used ansible for years with truenas to get informed about updates - and it worked like a charm. My former playbook below:
- name: speicher updates - status abrufen
ansible.builtin.uri:
url: https://{{ url }}/api/current
headers:
Authorization: Bearer {{ authorization }}
force_basic_auth: true
validate_certs: false
method: GET
register: speicher_updates_status
after upgrading to 25.10 they changed api access and I cannot find a way to get it working. I used gemini as recommended some weeks ago at T3 but could not find a working example. The docs did not help with an example either. Has anyone tried to use ansible with the new version? At the moment I tried the following:
- name: speicher updates - status abrufen
ansible.builtin.uri:
url: https://{{ url }}/api/v25.10.1
headers:
Authorization: Bearer {{ authorization }}
validate_certs: false
method: GET
body:
jsonrpc: "2.0"
id: "1"
method: "system.info"
params: []
body_format: json
register: speicher_updates_status
Can anyone help me?