fix(playbook): use API v2 path for Teams

ref: #37
This commit is contained in:
2024-12-31 15:46:05 +09:30
parent ae32fd6a96
commit 3906cdeb69

View File

@ -33,7 +33,7 @@
- name: Collect organizations from centurion ERP
ansible.builtin.uri:
url: |-
{{ lookup('env', 'CENTURION_API') }}/api/organization/
{{ lookup('env', 'CENTURION_API') }}/api/v2/access/organization/
method: GET
body_format: json
headers:
@ -135,7 +135,7 @@
- name: Create new teams in centurion_ERP
ansible.builtin.uri:
url: |-
{{ lookup('env', 'CENTURION_API') }}/api/organization/{{ item.organization_id }}/team
{{ lookup('env', 'CENTURION_API') }}/api/v2/access/organization/{{ item.organization_id }}/team
method: POST
body_format: json
body: |-
@ -265,4 +265,3 @@
- permissions
- teams
use_fact_cache: true