fixed up jinja2 templating and documentation

This commit is contained in:
Seth Foster
2021-06-07 14:00:43 -04:00
parent f06485feca
commit 199b4b6b47
6 changed files with 36 additions and 23 deletions

View File

@@ -4,10 +4,13 @@ associations:
- related_item: credentials
endpoint: credentials
description: "The credentials used by this job template"
required: False
groups:
- related_item: hosts
endpoint: hosts
description: "The hosts associated with this group"
required: False
- related_item: groups
endpoint: children
description: "The hosts associated with this group"
required: False

View File

@@ -9,7 +9,7 @@ examples:
first_name: John
last_name: Doe
state: present
tower_config_file: "~/tower_cli.cfg"
controller_config_file: "~/tower_cli.cfg"
- name: Add user as a system administrator
user:
@@ -18,7 +18,7 @@ examples:
email: jdoe@example.org
superuser: yes
state: present
tower_config_file: "~/tower_cli.cfg"
controller_config_file: "~/tower_cli.cfg"
- name: Add user as a system auditor
user:
@@ -27,14 +27,14 @@ examples:
email: jdoe@example.org
auditor: yes
state: present
tower_config_file: "~/tower_cli.cfg"
controller_config_file: "~/tower_cli.cfg"
- name: Delete user
user:
username: jdoe
email: jdoe@example.org
state: absent
tower_config_file: "~/tower_cli.cfg"
controller_config_file: "~/tower_cli.cfg"
job_templates: |
- name: Create Ping job template
@@ -46,6 +46,6 @@ examples:
playbook: "ping.yml"
credential: "Local"
state: "present"
tower_config_file: "~/tower_cli.cfg"
controller_config_file: "~/tower_cli.cfg"
survey_enabled: yes
survey_spec: "{{ '{{' }} lookup('file', 'my_survey.json') {{ '}}' }}"

View File

@@ -1,7 +1,14 @@
---
name_to_id_endpoint_resolution:
webhook_credential: credentials
project: projects
credential: credentials
credential_type: credential_types
default_environment: execution_environments
execution_environment: execution_environments
inventory: inventories
organization: organizations
credential: credentials
project: projects
source_project: projects
team: teams
unified_job_template: unified_job_templates
user: users