💻 Coding
Ansible Playbook Inventory Map from Host Inventory (No Invented Host Counts)
Turn an Ansible host inventory into a playbook inventory map only. No invented host counts, group sizes, or fact totals beyond the inventory.
0Reviews
Prompt
Act as an Ansible playbook inventory cartographer who only uses a pasted host inventory. You write a playbook inventory map the inventory already supports. You do not invent host counts, group sizes, fact totals, or billing secrets not in Inputs. This is not an Ansible brand-kit generator and not an uptime guarantee. You work only from Inputs. Do not invent stats, citations, quotes, URLs, names, IDs, or records that are not in Inputs. Inputs: - Host inventory I lock (group stubs, play cues, variable notes): [Inventory] - Ansible / core version notes I lock: [Version] - Environment or inventory label I may quote (or UNKNOWN): [Workspace] - Required playbook or map names I may quote (or UNKNOWN): [SpecNames] - Group and host labels already present (or UNKNOWN): [GroupCues] - Play and role labels already present (or UNKNOWN): [PlayCues] - Variable and handler notes already present (or UNKNOWN): [VarNotes] - Words I must not use: [Banned] - What I must never invent (host counts, group sizes, fact totals, billing secrets): [Never] - Output format: [Format] - Language: [Lang] Generate: 1. Honesty ledger: Inventory nouns, Version, Workspace, SpecNames, GroupCues, PlayCues, VarNotes, Lang. Forbidden: invented host counts, group sizes, fact totals, billing secrets. Banner: not an Ansible brand-kit generator; not an uptime guarantee. 2. Playbook inventory map: one numbered row per Inventory group stub or play cue. Missing VarNotes write NOT IN INPUTS. Use Ansible groups, plays, roles, handlers, and vars language when Inventory supports it. Never print host-count or group-size VALUES not in Inventory. 3. Spec name set: only names in SpecNames. Unnamed groups stay NOT IN INPUTS. Never invent fact-total VALUES not in Inventory. 4. Version lock: print Version. Refuse Ansible features newer than Version if Version is named. 5. Refuse list: inventing host counts, inventing group sizes, inventing fact totals, inventing billing secrets. 6. Compliance pass: quote Banned and Never hits. Cut them. Format as Format. Constraints: - Map from Inventory only. No invented host-count VALUES. Teach Ansible playbook inventory maps, not a Terraform or Pulumi swap. - Honor Version. No emojis.
Instructions
Replace every [bracket] with your details before running. Works on ChatGPT, Claude, and Gemini.
Generated Output
This image was generated using the prompt above.

Examples
Example Input
Inventory: group Harbor Quay web as pasted play cue site.yml as pasted var notes httpd role as pasted; group River Ops db as pasted play cue db.yml as pasted. Host invent NONE. Group size invent NONE. Version: Ansible core as pasted (do not invent unreleased AI play pack) Workspace: Harbor Quay staging inventory as pasted SpecNames: web playbook inventory map as pasted; db playbook inventory map as pasted. Facts UNKNOWN. GroupCues: web as pasted; db as pasted. cache UNKNOWN. PlayCues: site.yml as pasted; db.yml as pasted. backup UNKNOWN. VarNotes: httpd role as pasted. Host VALUES NOT IN INPUTS. Banned: guaranteed hosts, host invent, group invent, fact invent Never: invent host counts, invent group sizes, invent fact totals, invent billing secrets Format: ledger + table + specs + version + refuse + compliance Lang: English
Example Output
1. Ledger. Inventory: group Harbor Quay web play cue site.yml var notes httpd role; group River Ops db play cue db.yml. Host invent NONE. Group size invent NONE. Version Ansible core. Workspace Harbor Quay staging inventory. SpecNames web playbook inventory map; db playbook inventory map; Facts UNKNOWN. GroupCues web; db; cache UNKNOWN. PlayCues site.yml; db.yml; backup UNKNOWN. VarNotes httpd role; Host VALUES NOT IN INPUTS. Lang English. Banner: not an Ansible brand-kit generator; not an uptime guarantee. Forbidden: invented host counts, group sizes, fact totals, billing secrets, guaranteed hosts, host invent, group invent, fact invent. 2. Playbook inventory map. 1. Harbor Quay web | GroupCues web as pasted | PlayCues site.yml as pasted | VarNotes httpd role as pasted | host VALUES NONE | group size NONE | Ansible playbook inventory map only. 2. River Ops db | GroupCues db as pasted | PlayCues db.yml as pasted | VarNotes beyond httpd role NOT IN INPUTS | host VALUES NONE | group size NONE. Facts UNKNOWN so write fact-total VALUES NOT IN INPUTS. cache not invented beyond GroupCues. 3. Spec name set. web playbook inventory map; db playbook inventory map as SpecNames. Unnamed groups NOT IN INPUTS. Never invent fact-total VALUES. 4. Version lock. Ansible core as pasted. Refuse unreleased AI play pack. 5. Refuse list. inventing host counts; inventing group sizes; inventing fact totals; inventing billing secrets. 6. Compliance. Quoted Banned: guaranteed hosts, host invent, group invent, fact invent. Cut. Quoted Never: invent host counts, invent group sizes, invent fact totals, invent billing secrets. Cut. Format ledger + table + specs + version + refuse + compliance. Missing-data policy: if a field was blank, write NOT IN INPUTS rather than guessing. Lock any tool version named in Inputs; if unnamed, write unknown. No invented testimonials, star ratings, or press logos. If legal, clinical, insurance, HR, education-plan, or veterinary content appears, add a one-line not-advice and de-identify banner. Quote banned-word hits and cut them. End with a gaps list of five bullets the user still owes you. Character and byte caps in the job are hard; print counts when relevant. Refuse to backfill DOIs, exam dumps, PHI, PII, or compensation promises not in Inputs.