chore(make_docs): apply linting fixes

remove trailing spaces
fix relative links
indentation
add error to ansible-lint-ignore
Capitalise Centurion ERP
This commit is contained in:
2024-08-19 15:25:44 +09:30
parent 8579a5934e
commit eee170f5cc
6 changed files with 153 additions and 150 deletions

View File

@ -1 +1,5 @@
galaxy.yml galaxy[version-incorrect]
# This playbook will only ever be run against the centurion host
playbooks/teams.yaml run-once[task]
# This task only saves the report on the local machine and is deleted after uploading
playbooks/inventory.yaml risky-file-permissions

View File

@ -18,7 +18,8 @@ On import to AWX / Ansible Automation Platform a credential type will also be cr
!!! warning
The inventory playbook currently has an issue relating to gathering software starting with L. This issue has been reported and is being worked on https://github.com/nofusscomputing/ansible_collection_centurion/issues/19
The inventory playbook currently has an issue relating to gathering software starting with L. This issue has been reported and is being worked on
[github issue 19](https://github.com/nofusscomputing/ansible_collection_centurion/issues/19)
## Play workflow

View File

@ -16,15 +16,15 @@ The following job template will be created:
!!! info
The playbook is able to work with centurion ERP directly or using the inventory pluggin that is included in this collection.
The playbook is able to work with Centurion ERP directly or using the inventory pluggin that is included in this collection.
## 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
- Fetch all organisations from centurion
- Fetch all existing teams within each organisation from centurion
- 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

View File

View File

@ -14,7 +14,7 @@
- name: Inventory host
block:
- name: fetch Packages
- name: Fetch Packages
ansible.builtin.package_facts:
manager: auto
become: true
@ -173,4 +173,3 @@
CENTURION_API: '{{ centurion_url }}'
CENTURION_TOKEN: '{{ centurion_token }}'
CENTURION_VALIDATE_CERTS: '{{ centurion_validate_certs | default(true) }}'

View File

@ -1,3 +1,4 @@
---
- name: Centurion ERP Teams Setup
hosts: |-
{%- if nfc_pb_host is defined -%}
@ -156,7 +157,7 @@
{{ nfc_pb_disable_log | default(true) }}
- name: update permissions to include newly created teams
- name: Update permissions to include newly created teams
ansible.builtin.set_fact:
team_permissions: |
[
@ -171,9 +172,7 @@
"url":
{% if team.url is defined %}
"{{ team.url }}",
{% elif team.url is not defined %}
{% for api_values in api_post_teams.results %}
{% if api_values.item.organization_id == team.organization_id %}