diff --git a/ansible.cfg b/ansible.cfg deleted file mode 100644 index 912861c..0000000 --- a/ansible.cfg +++ /dev/null @@ -1,5 +0,0 @@ -[defaults] -collections_path= ~/git/ansible_collections - -[inventory] -enable_plugins = nofusscomputing.centurion.centurion diff --git a/docs/projects/ansible/collection/centurion/playbooks/inventory.md b/docs/projects/ansible/collection/centurion/playbooks/inventory.md index 7c61f77..2571560 100644 --- a/docs/projects/ansible/collection/centurion/playbooks/inventory.md +++ b/docs/projects/ansible/collection/centurion/playbooks/inventory.md @@ -27,7 +27,10 @@ On import to AWX / Ansible Automation Platform a credential type will also be cr The inventory playbook conducts the follwoing tasks: - Gathers host information + - Gathers sofware information + - Uploads the inventory report to Centurion ERP + - Cleans any leftover files used to create the reports diff --git a/docs/projects/ansible/collection/centurion/playbooks/teams.md b/docs/projects/ansible/collection/centurion/playbooks/teams.md index bbc492c..8bd0df1 100644 --- a/docs/projects/ansible/collection/centurion/playbooks/teams.md +++ b/docs/projects/ansible/collection/centurion/playbooks/teams.md @@ -21,14 +21,21 @@ 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 + +- for each team + + - Replace the team permissions + + - Replace the contents of the notes field ## Configuration diff --git a/playbooks/teams.yaml b/playbooks/teams.yaml index d0a652a..494268e 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,7 +219,7 @@ {{ nfc_pb_disable_log | default(true) }} - - name: Patch team notes + - name: Replace team notes ansible.builtin.uri: url: |- {{ item.url }}