Update Authorization header

Updated `Authorization` header to face bearer token deprecation announced at: https://announce.zerotier.com/en/changes-to-the-zerotier-central-api-and-token-access
pull/46/head
Pablo Alonso Rodriguez 2023-04-05 16:29:06 +02:00 committed by GitHub
parent ca3cc077d6
commit 71f7639450
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@
url: "{{ zerotier_api_url }}/api/network/{{ zerotier_network_id }}/member/{{ ansible_local['zerotier']['node_id'] }}"
method: POST
headers:
Authorization: bearer {{ zerotier_api_accesstoken }}
Authorization: token {{ zerotier_api_accesstoken }}
body:
hidden: false
config:
@ -22,7 +22,7 @@
url: "{{ zerotier_api_url }}/api/network/{{ zerotier_network_id }}/member/{{ ansible_local['zerotier']['node_id'] }}"
method: POST
headers:
Authorization: bearer {{ zerotier_api_accesstoken }}
Authorization: token {{ zerotier_api_accesstoken }}
body:
name: "{{ zerotier_member_register_short_hostname | ternary(inventory_hostname_short, inventory_hostname) }}"
description: "{{ zerotier_member_description | default() }}"