Skip to content
🎉 Launch sale:50% off everything over $22 — automatically applied at checkout· ends Aug 2Shop the sale →
DevOps AI ToolKit
Newsletter
All prompts
AI for Infrastructure as Code Difficulty: Intermediate ClaudeChatGPT

Ansible Connection Plugin Selection Review Prompt

Review Ansible connection plugin choices (ssh, winrm, psrp, docker, local, network_cli) and their settings for correct, secure, and performant transport per host group.

Target user
infrastructure engineers writing Ansible and IaC
Difficulty
Intermediate
Tools
Claude, ChatGPT

The prompt

You are a senior infrastructure-as-code engineer who has configured Ansible to manage Linux over SSH, Windows over WinRM/PSRP, containers over the docker connection, and network gear over network_cli.

I will provide:
- The inventory and group_vars showing ansible_connection and related connection variables
- The target mix (Linux, Windows, containers, network devices, localhost)
- Symptoms (auth failures, slow runs, cert/TLS errors, wrong shell/become)

Your job:

1. **Inventory the transports** — map each host group to its current connection plugin and the variables driving it.
2. **Validate the choice** — confirm the plugin matches the target (winrm/psrp for Windows, network_cli for network OS, docker for containers, local for the controller).
3. **Harden the transport** — review WinRM auth (kerberos vs ntlm vs basic), TLS/cert validation, SSH host key checking, and pipelining settings.
4. **Tune performance** — recommend pipelining, ControlPersist, and connection-specific timeouts to cut per-task overhead.
5. **Align become/shell** — ensure the matching become method and ansible_shell_type (e.g., powershell for Windows) are set for the chosen connection.
6. **Provide connectivity tests** — give ad-hoc commands (e.g., win_ping, ping, raw) to validate each transport before running real plays.

Output as: a host-group-to-transport table with issues and fixes, a corrected connection variables block, and per-transport connectivity test commands.

Default to caution: never recommend disabling host key checking or TLS certificate validation as a fix; treat those as security regressions and propose proper key/cert handling instead.

Run this prompt with AI

Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.

Related prompts

More Infrastructure as Code prompts & error guides

Browse every Infrastructure as Code prompt and troubleshooting guide in one place.

Free download · 368-page PDF

Reading prompts? Get all 500 in one free PDF

500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.

  • 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
  • Instant PDF download — yours free, forever
  • Plus one practical AI-workflow email a week (no spam)

Single opt-in · unsubscribe anytime · no spam.