HACKER Q&A
📣 LockAndLol

Is there a script/app to generate a playbook from a running system?


I have a running server and would like to migrate to another linux distro for access to more recent packages and familiarity with the commands. I figured it would be the best time to move towards configuration as code and Ansible seems to be the best way forward.

In order to cut down on the time required to write the playbook, it would be great if there were a script that could help generating a playbook e.g detect installed software, detect custom / user services, find and migrate docker-compose.yml to the ansible equivalent, etc.

Does something like that exist yet?


  👤 verdverm Accepted Answer ✓
I think you'll learn more ansible making the migration by hand.

Dent use ansible to replace docker compose, just because you can doesn't mean you should. They are only joining the container fray because they are losing. Not the right tool for working with containers and their configuration