{% extends "base.html" %} {% block title_suffix %} - AAP Configuration{% endblock %} {% block content %}

Ansible Automation Platform (AAP)

Configure and test your AAP Controller connection

{# --- Controller connection: status + streamed test --- #}

Controller connection

{% if aap_connected %} ✅ AAP Controller connected {% elif aap_configured %} Connection check {% else %} Not configured {% endif %}

{% if aap_connected %} Reachability is based on your last test or cached check. Use Test connection below to run a live probe (same step-by-step output as Deploy to AAP). {% elif aap_configured %} URL and token are saved. Click Test connection to stream each probe step below. {% else %} Enter Controller URL and token under Controller Settings to enable testing. {% endif %}

{% if aap_configured %}
{% endif %}
{# --- Settings Form Card --- #}

Controller Settings

{# Controller URL #}
{% if aap_sources.url == "env" %} Currently set via AAP_CONTROLLER_URL env var (takes precedence) {% endif %}
{# Token #}
{% if aap_sources.token == "env" %} Currently set via AAP_CONTROLLER_TOKEN env var (takes precedence) {% endif %} Generate a token in AAP under Users → your user → TokensAdd (leave Application blank, set Scope to Write).
{# Verify SSL #}

Defaults (optional)

{# Default Project -- first, drives the rest #}
{# Git Repo URL (read-only, derived from selected project) #}
SCM URL from the selected AAP project (saved with Save & Test Connection). Playbooks are pushed here during deploy. {% if aap_sources.default_scm_url == "env" %} Active value may come from AAP_DEFAULT_SCM_URL env var. {% endif %}
{# Default Organization #}
{# Default Inventory #}
{# Default Credential #}
{# Default EE #}
{# Job Template name prefix (Deploy to AAP) #}
Prepended to every Job Template name created by Deploy to AAP so admins can tell automation from manual JTs. Leave empty for no prefix. {% if aap_sources.job_template_prefix == "env" %} Overridden by ANSIBLECLAW_JOB_TEMPLATE_PREFIX env var. {% endif %}
{# Save button #}
Saving...

Settings are saved to .ansibleclaw.yml in the project root. Environment variables (AAP_CONTROLLER_URL, AAP_CONTROLLER_TOKEN, ANSIBLECLAW_JOB_TEMPLATE_PREFIX, etc.) take precedence when set.

{% endblock %}