YonasTewabe/ansible-infra-automation ? reverse-engineered prompt

Reverse engineered prompt

Build me an Ansible setup that can provision and configure Linux servers from a simple inventory file.

I want two playbooks, one for general server setup and one for database server setup, so I can run them separately depending on the machine. Please make it easy to point at either a remote host over SSH or a local machine for testing, and include a clear example inventory I can edit quickly. If it helps, use reusable roles or tasks so the setup stays clean and easy to expand later.

Also include the basic Ansible config and the dependency file so I can install any needed collections and run the playbooks right away. Please add a README that explains how to install Ansible, set up the inventory, do a syntax check, and run the playbooks with either password login or SSH keys. If anything needs current docs or best practices, look them up online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab