💻 Coding
Ansible Playbook Role Inventory Map from Stack Inventory (No Invented Host Counts)
Build an Ansible playbook and role inventory map from a pasted stack inventory only. No invented host counts, run durations, or failure rates.
0Reviews
Prompt
Act as an Ansible playbook role inventory cartographer who only uses a pasted stack inventory. You map playbooks, roles, and inventory groups the stack already supports. You do not invent host counts, run durations, failure rates, or package totals. This is not a live orchestration run and not a security audit. You work only from Inputs. Do not invent stats, citations, quotes, URLs, names, IDs, or records that are not in Inputs. Inputs: - Stack inventory I lock (playbooks, roles, groups, vars files): [Inventory] - Ansible version or collection notes I lock: [Version] - Stack or project label I may quote (or UNKNOWN): [StackLabel] - Playbook names I may quote (or UNKNOWN): [PlaybookNames] - Role titles already present (or UNKNOWN): [RoleTitles] - Inventory group cues already present (or UNKNOWN): [GroupCues] - Vars or vault cues already present (or UNKNOWN): [VarsCues] - Words I must not use: [Banned] - What I must never invent (host counts, run durations, failure rates, package totals): [Never] - Output format: [Format] - Language: [Lang] Generate: 1. Honesty ledger: Inventory nouns, Version, StackLabel, PlaybookNames, RoleTitles, GroupCues, VarsCues, Lang. Forbidden: invented host counts, run durations, failure rates, package totals. 2. Playbook-to-role map: one row per PlaybookNames entry. Attach only RoleTitles named beside that playbook in Inventory. Missing role write NOT IN INPUTS. 3. Group sketch table: for each GroupCues entry, list playbooks that name it. Do not invent webservers:50 if absent. 4. Vars caution block: quote VarsCues only. Vault paths not in Inventory stay NOT IN INPUTS; do not invent ansible-vault defaults. 5. Refuse list: inventing 240 hosts, inventing 12 minute runs, inventing 3% failure, inventing 90 packages. 6. Compliance pass: quote Banned and Never hits. Cut them. Print playbook and role counts from Inventory only. Format as Format. Constraints: - Playbook role inventory map from Inventory only. No invented host counts. - Honor Version. No emojis. Not a live ansible-playbook run.
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: playbook Harbor Site Deploy as pasted role harbor.nginx as pasted; playbook Harbor Db Backup as pasted role harbor.postgres as pasted. Host invent NONE. Duration invent NONE. Version: Ansible 2.16 as pasted (do not invent unreleased AI playbook builder) StackLabel: Harbor Quay stack as pasted PlaybookNames: Harbor Site Deploy as pasted; Harbor Db Backup as pasted. Rollback playbook UNKNOWN. RoleTitles: harbor.nginx as pasted; harbor.postgres as pasted. harbor.redis UNKNOWN. GroupCues: group edge as pasted for Site Deploy; Db Backup group NOT IN INPUTS. VarsCues: group_vars/edge.yml as pasted. Vault path UNKNOWN. Banned: 240 hosts, 3% failure, guaranteed zero-downtime Never: invent host counts, invent run durations, invent failure rates, invent package totals Format: ledger + playbook-role map + group sketch + vars caution + refuse + compliance Lang: English
Example Output
1. Ledger. Inventory: playbook Harbor Site Deploy + role harbor.nginx; playbook Harbor Db Backup + role harbor.postgres. Host invent NONE. Duration invent NONE. Version Ansible 2.16. StackLabel Harbor Quay stack. PlaybookNames Site Deploy; Db Backup. RoleTitles harbor.nginx; harbor.postgres. GroupCues edge for Site Deploy; Db Backup group NOT IN INPUTS. VarsCues group_vars/edge.yml. Vault path UNKNOWN. Lang English. Forbidden: invented host counts, run durations, failure rates, package totals, 240 hosts, 3% failure, guaranteed zero-downtime. 2. Playbook-to-role map. Harbor Site Deploy | role harbor.nginx as pasted. Harbor Db Backup | role harbor.postgres as pasted. harbor.redis not attached. Rollback playbook not added. 3. Group sketch table. group edge | playbook Harbor Site Deploy as pasted. Db Backup group | NOT IN INPUTS. Host cardinality NOT IN INPUTS so do not invent webservers:50. Second edge subgroup not invented. 4. Vars caution. group_vars/edge.yml as pasted. Vault path UNKNOWN. ansible-vault default NOT IN INPUTS. Do not invent host_vars inventories. 5. Refuse. 240 hosts: refused. 12 minute runs: refused. 3% failure: refused. 90 packages: refused. Unreleased AI playbook builder: refused. 6. Compliance. Banned hits none. Playbooks 2. Roles 2. Format ledger+playbook-role map+group sketch+vars caution+refuse+compliance. Gaps: Db Backup group, Rollback playbook, harbor.redis, Vault path, host cardinality. 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.