Merge pull request #30 from jasonpagetas/issue#29fixes
This commit is contained in:
@ -1,5 +0,0 @@
|
||||
[defaults]
|
||||
collections_path= ~/git/ansible_collections
|
||||
|
||||
[inventory]
|
||||
enable_plugins = nofusscomputing.centurion.centurion
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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 }}
|
||||
|
Reference in New Issue
Block a user