Hello, I have recently been seeing a boom in people using ansible for automating setting up vps’s, services, …

Is it worth it to learn ansible to do also automate the way I setup everything, or is a bash script good enough ( I know some bash scripting but ansible seems like it could be more worth the time to learn )?

  • CronyAkatsuki@lemmy.cronyakatsuki.xyzOP
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    2 months ago

    I tend to grow my fleet of servers every couple months, and that requires me to once again setup everything from the beginning, settings, sshd, update debian if old version, new user for ssh, docker/podman, …

    Quite literally added new vps to my fleet yesterday and spent 4 hourson setting all that up, when it could have been a simple ansible script.

    • oldfart@lemm.ee
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 months ago

      Then yes, learning Ansible is a good way to have base OS settings for your systems. I love that it’s agentless - works over SSH.

      The ugly part is that they keep updating it in a backwards incompatible way. In one version the paramerer is called “file” and in another it’s “dest”, they pull shit like this and don’t provide a tool to update playbooks automatically.

      But updating is rather optional.