aap-demo
AAP Demo deployment knowledge - ADRs, API patterns, credentials, and troubleshooting
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
AAP Demo deployment knowledge - ADRs, API patterns, credentials, and troubleshooting
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | aap-demo |
| description | AAP Demo deployment knowledge - ADRs, API patterns, credentials, and troubleshooting |
ADRs are located in docs/adr/ and document key architectural decisions.
Each ADR follows the standard format:
000-template.md - Template for new ADRs001- through 019+ - Numbered decision recordsWhen making architectural changes or understanding design rationale, always check existing ADRs first:
ls docs/adr/
To create a new ADR, copy docs/adr/000-template.md and follow the numbering convention.
CORRECT:
# Use the AAP gateway API endpoint
curl -k -u admin:password https://{{ aap_host }}/api/v2/ping/
INCORRECT:
# Do NOT access controller API directly
curl -k https://{{ controller_host }}/api/v2/ping/ # ❌ WRONG
Why: The AAP gateway (introduced in AAP 2.5+) provides:
The controller API endpoint is an internal implementation detail and may change or be deprecated.
CORRECT:
# Get AAP admin password from the correct secret
kubectl get secret aap-admin-password -n aap-operator -o jsonpath='{.data.password}' | base64 -d
# Or use aap-demo status (recommended)
aap-demo status | grep "AAP Admin"
INCORRECT:
# Do NOT use controller-specific credentials
kubectl get secret aap-controller-admin-password # ❌ WRONG
kubectl get secret controller-admin-password # ❌ WRONG
Why:
aap-admin-password is the gateway admin credential (AAP 2.5+)# Get all credentials (AAP admin, hub admin, etc.)
aap-demo status
# AAP admin username is always: admin
# Password is displayed in status output
# Get AAP admin password from Kubernetes secret
AAP_PASSWORD=$(kubectl get secret aap-admin-password -n aap-operator -o jsonpath='{.data.password}' | base64 -d)
echo $AAP_PASSWORD
# Use in API calls
curl -k -u admin:${AAP_PASSWORD} https://{{ aap_host }}/api/v2/ping/
# Get password inline
kubectl get secret aap-admin-password -n aap-operator -o jsonpath='{.data.password}' | base64 -d && echo
# 1. Get the AAP gateway URL
AAP_URL=$(aap-demo status | grep "AAP Gateway" | awk '{print $3}')
# 2. Get the admin password
AAP_PASSWORD=$(kubectl get secret aap-admin-password -n aap-operator -o jsonpath='{.data.password}' | base64 -d)
# 3. Navigate to $AAP_URL in browser and login with:
# Username: admin
# Password: $AAP_PASSWORD
❌ DO NOT USE:
awx-cli login # WRONG - deprecated tool
awx ping # WRONG - deprecated tool
✅ USE INSTEAD:
# Direct API calls via curl
curl -k -u admin:password https://{{ aap_host }}/api/v2/ping/
# Or ansible.controller collection modules
ansible-playbook -i inventory playbook.yml
Why:
awx-cli is deprecated and no longer maintainedawx-cli was designed for AWX (upstream), not AAP (downstream product)awx-cli does not support AAP gateway authenticationawx-cli bypasses the gateway and tries to connect directly to controlleransible.controller collection or direct API callsAlternatives:
ansible.controller collection modulescurl with gateway API endpointsaap-demo commands or write shell scripts around the API# 1. Get AAP credentials
AAP_PASS=$(aap-demo status | grep "AAP Admin Password" | awk '{print $4}')
AAP_HOST=$(aap-demo status | grep "AAP Gateway" | awk '{print $3}')
# 2. Use gateway API
curl -k -u admin:${AAP_PASS} \
-H "Content-Type: application/json" \
-X POST \
https://${AAP_HOST}/api/v2/job_templates/1/launch/
See docs/collection-authentication.md for detailed guidance on:
ansible.controller collection with gateway API# Run automated health checks
aap-demo diagnose
# AI-powered root cause analysis (requires claude CLI)
aap-demo diagnose --ai
# Full diagnostic bundle for complex issues
aap-demo must-gather
API authentication failures
{{ aap_host }}/api not {{ controller_host }}/apiRoute resolution
aap-gateway.192.168.64.2.nip.io)aap-demo statusPod failures
oc adm policy add-scc-to-group anyuid system:serviceaccounts:aap-operatoraap-operator (default)docs/adr/docs/FULL-README.mddocs/collection-authentication.mddocs/CONTRIBUTING.md.claude/CLAUDE.md (if present in working directory)