💻 Coding

Ansible Playbook Role Map from Inventory Stack (No Invented Host Counts)

Turn an Ansible inventory stack into a playbook role map only. No invented host counts, task totals, or success percents beyond the inventory.

0.0
0Reviews
P
September 20, 2026

Prompt

Act as an Ansible playbook-role cartographer who only uses a pasted inventory. You write a playbook role map the inventory already supports. You do not invent host counts, task totals, success percents, or billing secrets not in Inputs. This is not an Ansible brand-kit generator; not an infra guarantee.
You work only from Inputs. Do not invent stats, citations, quotes, URLs, names, IDs, or records that are not in Inputs.

Inputs:
- Inventory I lock (play stubs, role cues, host notes): [Inventory]
- Ansible / collection version notes I lock: [Version]
- Repo or inventory label I may quote (or UNKNOWN): [Workspace]
- Required playbook or map names I may quote (or UNKNOWN): [SpecNames]
- Playbook and play labels already present (or UNKNOWN): [PlayCues]
- Role and collection labels already present (or UNKNOWN): [RoleCues]
- Group and host notes already present (or UNKNOWN): [HostNotes]
- Words I must not use: [Banned]
- What I must never invent (host counts, task totals, success percents, billing secrets): [Never]
- Output format: [Format]
- Language: [Lang]

Generate:
1. Honesty ledger: Inventory nouns, Version, Workspace, SpecNames, PlayCues, RoleCues, HostNotes, Lang. Forbidden: invented host counts, task totals, success percents, billing secrets. Banner: not an Ansible brand-kit generator; not an infra guarantee.
2. Playbook role map: one numbered row per Inventory stub or cue. Missing HostNotes write NOT IN INPUTS. Use Ansible playbooks, roles, inventories, handlers, and vault language when Inventory supports it. Never print host-count or task VALUES not in Inventory.
3. Spec name set: only names in SpecNames. Unnamed rows stay NOT IN INPUTS. Never invent success-percent 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 task totals, inventing success percents, inventing billing secrets.
6. Compliance pass: quote Banned and Never hits. Cut them. Format as Format.

Constraints:
- Map from Inventory only. No invented host VALUES. Teach Ansible playbook role maps, not a Chef or Puppet 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.

Ansible Playbook Role Map from Inventory Stack (No Invented Host Counts) - Result

Examples

Example Input

Inventory: play Harbor Quay dock-harden as pasted role cue common.base as pasted host notes dock_web as pasted; play River Ops river-patch as pasted role cue common.patch as pasted. Host invent NONE. Task invent NONE.
Version: Ansible as pasted (do not invent unreleased AI playbook pack)
Workspace: Harbor Quay ops desk as pasted
SpecNames: dock-harden role map as pasted; river-patch role map as pasted. Success percents UNKNOWN.
PlayCues: dock-harden as pasted; river-patch as pasted. edge-proxy UNKNOWN.
RoleCues: common.base as pasted; common.patch as pasted. common.vault UNKNOWN.
HostNotes: dock_web as pasted. Host VALUES NOT IN INPUTS.
Banned: guaranteed green, host invent, task invent, success invent
Never: invent host counts, invent task totals, invent success percents, invent billing secrets
Format: ledger + table + specs + version + refuse + compliance
Lang: English

Example Output

1. Ledger. Inventory: play Harbor Quay dock-harden as pasted role cue common.base as pasted host notes dock_web as pasted; play River Ops river-patch as pasted role cue common.patch as pasted. Host invent NONE. Task invent NONE. Version Ansible as pasted. Workspace Harbor Quay ops desk. SpecNames dock-harden role map as pasted; river-patch role map as pasted. Success percents UNKNOWN. PlayCues dock-harden as pasted; river-patch as pasted. edge-proxy UNKNOWN. RoleCues common.base as pasted; common.patch as pasted. common.vault UNKNOWN. HostNotes dock_web as pasted. Host VALUES NOT IN INPUTS. Lang English. Banner: not an Ansible brand-kit generator; not an infra guarantee. Forbidden: invented host counts, task totals, success percents, billing secrets, guaranteed green, host invent, task invent, success invent.

2. Playbook role map.
1. Harbor Quay dock-harden | PlayCues dock-harden as pasted | RoleCues common.base as pasted | HostNotes dock_web as pasted | host VALUES NONE | task NONE | Ansible playbook role map only.
2. River Ops river-patch | PlayCues river-patch as pasted | RoleCues common.patch as pasted | HostNotes beyond dock_web NOT IN INPUTS | host VALUES NONE | task NONE.
Success percents UNKNOWN so write success-percent VALUES NOT IN INPUTS. edge-proxy not invented beyond PlayCues.

3. Spec name set. dock-harden role map as pasted; river-patch role map as pasted as SpecNames. Unnamed rows NOT IN INPUTS. Never invent success-percent VALUES.

4. Version lock. Ansible as pasted as pasted. Refuse unreleased AI playbook pack.

5. Refuse list. inventing host counts; inventing task totals; inventing success percents; inventing billing secrets.

6. Compliance. Quoted Banned: guaranteed green, host invent, task invent, success invent. Cut. Quoted Never: invent host counts, invent task totals, invent success percents, 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.

Reviews (0)

Please login to leave a review.
Loading reviews...