diff --git a/playbooks/centurion_teams.yaml b/playbooks/teams.yaml similarity index 83% rename from playbooks/centurion_teams.yaml rename to playbooks/teams.yaml index 8967e89..17d05c8 100644 --- a/playbooks/centurion_teams.yaml +++ b/playbooks/teams.yaml @@ -7,7 +7,7 @@ {%- endif %} become: false gather_facts: false - connection: local # Play uses HTTP requests ONLY!! + connection: local # Play uses HTTP requests ONLY! tasks: @@ -242,3 +242,52 @@ run_once: true no_log: > # Contains a secret that logging shows {{ nfc_pb_disable_log | default(true) }} + + + vars: + + nfc_pb_awx_tower_template: + + - name: "Centurion/access/teams" + ask_tags_on_launch: false + ask_inventory_on_launch: true + ask_credential_on_launch: true + ask_limit_on_launch: true + concurrent_jobs_enabled: true + description: Creation and patching of teams and permissions + execution_environment: "No Fuss Computing EE" + job_type: "run" + # job_tags: complete + labels: + - centurion_erp + - itsm + - itam + - access + - permissions + - teams + use_fact_cache: true + credential_types: + - name: 'Playbook/teams/centurion' + description: | + Credentials for authentication to centurion_erp + inputs: | + fields: + - id: centurion_url + type: string + label: centurion url + help_text: Ensure that `https://` is prefixed to url + - id: centurion_token + type: string + label: api token + secret: true + - id: centurion_validate_certs + type: boolean + label: Validate SSL Certificate + required: + - itsm_api + - itsm_token + injectors: > + env: + CENTURION_API: '{{ centurion_url }}' + CENTURION_TOKEN: '{{ centurion_token }}' + CENTURION_VALIDATE_CERTS: '{{ centurion_validate_certs | default(true) }}' \ No newline at end of file