From 3906cdeb693b4d83f5805b82926fc7c5758d7276 Mon Sep 17 00:00:00 2001 From: Jon Date: Tue, 31 Dec 2024 15:46:05 +0930 Subject: [PATCH] fix(playbook): use API v2 path for Teams ref: #37 --- playbooks/teams.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/playbooks/teams.yaml b/playbooks/teams.yaml index 494268e..e0ba9ca 100644 --- a/playbooks/teams.yaml +++ b/playbooks/teams.yaml @@ -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 -