fix(teams): replace PATCH -> POST
POST is required to overwrite Updated docs to reflect changes #30 closes #29
This commit is contained in:
@ -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
|
||||
|
@ -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: |-
|
||||
{
|
||||
|
Reference in New Issue
Block a user