docs(fix): wasnt rendering correctly

!1
This commit is contained in:
2023-07-28 15:31:58 +09:30
parent 024d6c6d6e
commit b91acddf16
3 changed files with 19 additions and 9 deletions

View File

@ -16,17 +16,21 @@ Each tab provides an example of the JSON file layout, including any additional v
=== "AuthLDAP" === "AuthLDAP"
``` json title="example.json" linenums="1 ``` json title="example.json" linenums="1"
{ {
"api_path": "AuthLDAP", "api_path": "AuthLDAP",
"body": { "body": {
// JSON from API Query // JSON from API Query
} }
} }
``` ```
=== "Entity" === "Entity"
``` json title="example.json" linenums="1 ``` json title="example.json" linenums="1"
{ {
"api_path": "Entity", "api_path": "Entity",
"entities_id": "", "entities_id": "",
@ -34,11 +38,13 @@ Each tab provides an example of the JSON file layout, including any additional v
// JSON from API Query // JSON from API Query
} }
} }
``` ```
=== "ITILCategory" === "ITILCategory"
``` json title="example.json" linenums="1 ``` json title="example.json" linenums="1"
{ {
"api_path": "ITILCategory", "api_path": "ITILCategory",
"users_id": "", "users_id": "",
@ -49,24 +55,29 @@ Each tab provides an example of the JSON file layout, including any additional v
// JSON from API Query // JSON from API Query
} }
} }
``` ```
=== "Profile" === "Profile"
``` json title="example.json" linenums="1 ``` json title="example.json" linenums="1"
{ {
"api_path": "Profile", "api_path": "Profile",
"body": { "body": {
// JSON from API Query // JSON from API Query
} }
} }
``` ```
With the config files structured as per the examples, within your playbook(s), load the json files in a list of json objects using variable `glpi_config_as_code_json` With the config files structured as per the examples, within your playbook(s), load the json files in a list of json objects using variable `glpi_config_as_code_json`
example example
``` yaml title="my_vars.yaml" linenums="1 ``` yaml title="my_vars.yaml" linenums="1"
glpi_config_as_code_json: glpi_config_as_code_json:
- "{{ lookup('file', '/workdir/files/glpi/ITILCategory-new-ldap-user.json') | from_json }}" - "{{ lookup('file', '/workdir/files/glpi/ITILCategory-new-ldap-user.json') | from_json }}"
- "{{ lookup('file', '/workdir/files/glpi/LDAPAuth-local_ldap.json') | from_json }}" - "{{ lookup('file', '/workdir/files/glpi/LDAPAuth-local_ldap.json') | from_json }}"

View File

@ -15,11 +15,10 @@ This Ansible role is designed to manage GLPI specifically installation and confi
- [Configure using Config from Code](config_from_code.md) - [Configure using Config from Code](config_from_code.md)
## Default Variables ## Default Variables
Here's an example playbook that demonstrates how to use the `docker_management` role: ``` yaml title="defaults/main.yaml" linenums="1"
```yaml title="defaults/main.yaml" linenums="1
--8<-- "defaults/main.yaml" --8<-- "defaults/main.yaml"

View File

@ -2,7 +2,7 @@ INHERIT: website-template/mkdocs.yml
docs_dir: 'docs' docs_dir: 'docs'
repo_name: Docker Management repo_name: nfc_glpi
repo_url: https://gitlab.com/nofusscomputing/projects/ansible/nfc_glpi repo_url: https://gitlab.com/nofusscomputing/projects/ansible/nfc_glpi
edit_uri: '/-/ide/project/nofusscomputing/projects/ansible/nfc_glpi/edit/development/-/docs/' edit_uri: '/-/ide/project/nofusscomputing/projects/ansible/nfc_glpi/edit/development/-/docs/'