Variable naming convention
Updated 2 variable names to follow naming convention. For backwards compatibility the old names are rewritten to the new ones in the role's defaults.
This commit is contained in:
@@ -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_accesstoken }}
|
||||
Authorization: bearer {{ zerotier_api_accesstoken }}
|
||||
body:
|
||||
hidden: false
|
||||
config:
|
||||
@@ -21,9 +21,9 @@
|
||||
url: "{{ zerotier_api_url }}/api/network/{{ zerotier_network_id }}/member/{{ ansible_local.zerotier.node_id }}"
|
||||
method: POST
|
||||
headers:
|
||||
Authorization: bearer {{ zerotier_accesstoken }}
|
||||
Authorization: bearer {{ zerotier_api_accesstoken }}
|
||||
body:
|
||||
name: "{{ zerotier_register_short_hostname | ternary(inventory_hostname_short, inventory_hostname) }}"
|
||||
name: "{{ zerotier_member_register_short_hostname | ternary(inventory_hostname_short, inventory_hostname) }}"
|
||||
description: "{{ zerotier_member_description | default() }}"
|
||||
config:
|
||||
ipAssignments: "{{ zerotier_member_ip_assignments | default([]) | list }}"
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
- import_tasks: authorize_node.yml
|
||||
when:
|
||||
- zerotier_accesstoken is defined
|
||||
- zerotier_api_accesstoken | length > 0
|
||||
- ansible_local.zerotier.node_id is defined
|
||||
|
||||
- import_tasks: join_network.yml
|
||||
|
||||
Reference in New Issue
Block a user