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

    • chrisp@cyberplace.social
      link
      fedilink
      arrow-up
      1
      ·
      2 days ago

      @Cyber Bash also seems to default to only writing out the history entries when you cleanly exit, so I’ve definitely got gaps in my history when I killed a terminal or SSH session. When I leave work I do a quick “history -a” to append new entries that haven’t been written out yet. Some people modify their bash prompt so that it writes each entry out instantly which I haven’t done, but I think it would be a saner default.