Cloudflare GraphQL Analytics for zone traffic, firewall events, Workers metrics, and schema exploration. Use when querying Cloudflare analytics data or exploring the GraphQL API.
日本語の概要は準備中です。原文の説明を表示しています。
Use when working with Ansible — ansible automation and configuration management. Covers playbook execution, inventory management, role management, vault secrets, ad-hoc commands, fact gathering, and task debugging. Use when running playbooks, managing inventories, debugging task failures, or auditing Ansible configurations.
インストールする前に、エージェントに与えられる指示の中身を確認できます。
Manage and execute Ansible playbooks, inventories, roles, and vault-encrypted secrets.
Always inspect inventory and available playbooks before executing tasks.
#!/bin/bash
echo "=== Ansible Version ==="
ansible --version 2>/dev/null | head -5
echo ""
echo "=== Inventory Summary ==="
ansible-inventory --list --yaml 2>/dev/null | head -30 || \
ansible-inventory --graph 2>/dev/null | head -30
echo ""
echo "=== Available Playbooks ==="
find . -maxdepth 3 -name "*.yml" -o -name "*.yaml" | grep -i playbook | head -20
echo ""
echo "=== Available Roles ==="
ls roles/ 2>/dev/null || ansible-galaxy list 2>/dev/null | head -15
#!/bin/bash
# Ansible wrapper with common options
ans_cmd() {
ansible "$@" --forks=10 2>/dev/null
}
# Playbook execution with check mode
ans_playbook() {
local playbook="$1"
shift
ansible-playbook "$playbook" "$@" 2>&1
}
# Vault wrapper
ans_vault() {
ansible-vault "$@" 2>/dev/null
}
--list-tasks or --list-tags for playbook inspection without execution--check (dry-run) before actual execution--graph or filter by group#!/bin/bash
echo "=== Host Groups ==="
ansible-inventory --graph 2>/dev/null
echo ""
echo "=== Group Variables ==="
GROUP="${1:-all}"
ansible-inventory --host "${GROUP}" --yaml 2>/dev/null | head -30 || \
ansible-inventory --list 2>/dev/null | jq --arg g "$GROUP" '.[$g] // "Group not found"'
echo ""
echo "=== Host Count by Group ==="
ansible-inventory --list 2>/dev/null | jq '
to_entries[] |
select(.value | type == "object" and has("hosts")) |
"\(.key): \(.value.hosts | length) hosts"
' 2>/dev/null
#!/bin/bash
PLAYBOOK="${1:?Playbook path required}"
echo "=== Playbook Tasks ==="
ansible-playbook "$PLAYBOOK" --list-tasks 2>/dev/null
echo ""
echo "=== Playbook Tags ==="
ansible-playbook "$PLAYBOOK" --list-tags 2>/dev/null
echo ""
echo "=== Dry Run (Check Mode) ==="
ansible-playbook "$PLAYBOOK" --check --diff --limit "${2:-all}" 2>&1 | tail -30
#!/bin/bash
HOST_PATTERN="${1:?Host pattern required}"
echo "=== Host Facts ==="
ansible "$HOST_PATTERN" -m setup -a 'filter=ansible_distribution*,ansible_memtotal_mb,ansible_processor_vcpus' 2>/dev/null | head -40
echo ""
echo "=== Connectivity Check ==="
ansible "$HOST_PATTERN" -m ping 2>/dev/null
echo ""
echo "=== Uptime ==="
ansible "$HOST_PATTERN" -m command -a "uptime" 2>/dev/null | head -20
#!/bin/bash
ACTION="${1:?Action required: view|encrypt|decrypt|rekey}"
case "$ACTION" in
view)
echo "=== Encrypted Files ==="
find . -name "*.yml" -o -name "*.yaml" | xargs grep -l 'ANSIBLE_VAULT' 2>/dev/null
;;
encrypt)
FILE="${2:?File path required}"
echo "=== Encrypting: $FILE ==="
ansible-vault encrypt "$FILE" 2>&1
;;
decrypt)
FILE="${2:?File path required}"
echo "=== Decrypting: $FILE (view only) ==="
ansible-vault view "$FILE" 2>/dev/null | head -20
;;
rekey)
FILE="${2:?File path required}"
echo "=== Rekeying: $FILE ==="
echo "Run: ansible-vault rekey $FILE"
;;
esac
#!/bin/bash
echo "=== Installed Roles ==="
ansible-galaxy list 2>/dev/null
echo ""
echo "=== Role Dependencies ==="
for role in roles/*/; do
if [ -f "${role}meta/main.yml" ]; then
echo "--- $(basename $role) ---"
grep -A 5 'dependencies:' "${role}meta/main.yml" 2>/dev/null
fi
done | head -30
echo ""
echo "=== Requirements File ==="
cat requirements.yml 2>/dev/null || cat roles/requirements.yml 2>/dev/null | head -20
--check first unless explicitly confirmed--limit to target specific hosts during testing--diff with --check to see what would change before applyingnever tag to prevent accidental executionPresent results as a structured report:
Managing Ansible Report
═══════════════════════
Resources discovered: [count]
Resource Status Key Metric Issues
──────────────────────────────────────────────
[name] [ok/warn] [value] [findings]
Summary: [total] resources | [ok] healthy | [warn] warnings | [crit] critical
Action Items: [list of prioritized findings]
Target ≤50 lines of output. Use tables for multi-resource comparisons.
--help output.| Shortcut | Counter | Why |
|---|---|---|
| "I'll skip discovery and check known resources" | Always run Phase 1 discovery first | Resource names change, new resources appear — assumed names cause errors |
| "The user only asked for a quick check" | Follow the full discovery → analysis flow | Quick checks miss critical issues; structured analysis catches silent failures |
| "Default configuration is probably fine" | Audit configuration explicitly | Defaults often leave logging, security, and optimization features disabled |
| "Metrics aren't needed for this" | Always check relevant metrics when available | API/CLI responses show current state; metrics reveal trends and intermittent issues |
| "I don't have access to that" | Try the command and report the actual error | Assumed permission failures prevent useful investigation; actual errors are informative |
ansible -m ping firstansible_python_interpreter if not at default pathcommand/shell modules are not idempotent -- use creates/removes parametersbecome: yes requires sudo access on target -- check sudoers configurationgather_facts: yes or clear cachemeta: flush_handlers if needed earlierまだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Cloudflare GraphQL Analytics for zone traffic, firewall events, Workers metrics, and schema exploration. Use when querying Cloudflare analytics data or exploring the GraphQL API.
日本語の概要は準備中です。原文の説明を表示しています。
Use when working with Alloydb — google AlloyDB instance analysis, query insights, columnar engine optimization, maintenance windows, and cluster health.
日本語の概要は準備中です。原文の説明を表示しています。
Use when working with Aqua — aqua Security platform analysis. Covers container runtime protection, image assurance policies, compliance frameworks, vulnerability management, workload protection, and registry scanning. Use when analyzing container security posture, reviewing image compliance, investigating runtime alerts, or auditing security policies.
日本語の概要は準備中です。原文の説明を表示しています。
Use when working with Bigquery — google BigQuery job analysis, slot utilization, cost analysis, dataset management, and query optimization.
日本語の概要は準備中です。原文の説明を表示しています。
Use when working with Cassandra — apache Cassandra keyspace analysis, compaction strategies, repair status, nodetool operations, and cluster health monitoring.
日本語の概要は準備中です。原文の説明を表示しています。
Use when working with Checkov — checkov infrastructure-as-code security scanning. Covers Terraform, CloudFormation, Kubernetes, and Dockerfile scanning, policy management, custom checks, compliance frameworks, and suppression management. Use when scanning IaC for security misconfigurations, evaluating compliance, managing custom policies, or reviewing scan results.
日本語の概要は準備中です。原文の説明を表示しています。