I have a few VMs and PMs around the house that I’d setup over time and I’d now like to rebuild some, not to mention just simplify the whole lot.

How the hell do I get from a working system to an equivalent ansible playbook without many (MANY) iterations of trial & error - and potentially destroying the running system??

Ducking around didn’t really show much so I’m either missing a concept / keyword, or, no-one does this.

Pointers?

TIA

  • Face Thumb@cyberplace.social
    link
    fedilink
    arrow-up
    1
    ·
    4 months ago

    @Cyber If you have some old wiki notes on how the system was setup originallythen it night be easier to ignore the current system and translate the wiki instructions into ansible. Still manual, but easier than reverse engineering. Another thing you can look at is bash history. Apart from backing up/cloning the system before you start I would also get a copy of the bash history for the various users and add it to a wiki or issue too. It will be useful.

    • SayCyberOnceMore@feddit.ukOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      4 months ago

      Yeah… notes… they started about 50% of the way through building the system.

      Now, my notes are great, but some of these devices are ~10 years old.

      But, yep, I totally agree, notes are a damn good thing to have.

      Not thought about bash history though, interesting point, but I think that only goes back a short duration?