diff --git a/docs/projects/ansible/collection/centurion/playbooks/teams.md b/docs/projects/ansible/collection/centurion/playbooks/teams.md index bbc492c..855a2bf 100644 --- a/docs/projects/ansible/collection/centurion/playbooks/teams.md +++ b/docs/projects/ansible/collection/centurion/playbooks/teams.md @@ -21,14 +21,14 @@ The following job template will be created: ## Play workflow -The teams playbook gathers information regarding centurion organisations from the ansible inventory. Using this information the play is designed to create new teams, patch permissions and patch notes. The workflow for the playbook is as follows +The teams playbook gathers information regarding centurion organisations from the ansible inventory. Using this information the play is designed to create new teams with permissions and notes. The workflow for the playbook is as follows - Fetch all organisations from Centurion ERP - Fetch all existing teams within each organisation from Centurion ERP - Fetch any teams to be created from inventory - Create new teams -- Patch all teams with required permissions -- Patch all teams with required notes +- POST all teams with required permissions +- POST all teams with required notes ## Configuration diff --git a/playbooks/teams.yaml b/playbooks/teams.yaml index d0a652a..9113a60 100644 --- a/playbooks/teams.yaml +++ b/playbooks/teams.yaml @@ -198,11 +198,11 @@ {{ nfc_pb_disable_log | default(true) }} - - name: Patch team permissions + - name: Replace team permissions ansible.builtin.uri: url: |- {{ item.url }}permissions - method: PATCH + method: POST body_format: json body: "{{ item.permissions }}" headers: @@ -219,11 +219,11 @@ {{ nfc_pb_disable_log | default(true) }} - - name: Patch team notes + - name: replace team notes ansible.builtin.uri: url: |- {{ item.url }} - method: PATCH + method: POST body_format: json body: |- {