Skip to content

Commit

Permalink
fix(teams): replace PATCH -> POST
Browse files Browse the repository at this point in the history
POST is required to overwrite
  • Loading branch information
jasonpagetas committed Aug 21, 2024
1 parent 2d819eb commit 719cfc3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions docs/projects/ansible/collection/centurion/playbooks/teams.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ The teams playbook gathers information regarding centurion organisations from th
- Patch all teams with required notes


!!! info
The patching tasks utilise the POST operations in order to overwrite all permissions and notes.

## Configuration

The teams playbook uses variables that are gathered from inventory. The expected structure of the inventory file is:
Expand Down
4 changes: 2 additions & 2 deletions playbooks/teams.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
ansible.builtin.uri:
url: |-
{{ item.url }}permissions
method: PATCH
method: POST
body_format: json
body: "{{ item.permissions }}"
headers:
Expand All @@ -223,7 +223,7 @@
ansible.builtin.uri:
url: |-
{{ item.url }}
method: PATCH
method: POST
body_format: json
body: |-
{
Expand Down

0 comments on commit 719cfc3

Please sign in to comment.