• jdr@lemmy.ml
    link
    fedilink
    English
    arrow-up
    5
    ·
    9 hours ago

    Isn’t the point of Ansible that it doesn’t depend on the underlying distro?

    • neclimdul@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      7 hours ago

      the idea would be to have playbooks support all distros but any infrastructure as code has to have distro specific code for package names and subtle differences in config.

      But you’ve got the right idea. the point is that you can test that and then you depend on the distro less because your playbook takes care of the complexity.

      • jdr@lemmy.ml
        link
        fedilink
        English
        arrow-up
        1
        ·
        5 hours ago

        Ya, I was being a bit glib, because that’s how it was pitched to me, but in my limited experience it never even nearly lived up to that. It’s so great to have generic functions to install a package or change a setting, but maybe too Quixotic to assume it’ll usually work.

      • jdr@lemmy.ml
        link
        fedilink
        English
        arrow-up
        1
        ·
        8 hours ago

        A certain world’s most valuable company wasted me a huge amount of time by supplying a smorgasbord of ever-so-slightly broken playbooks that borked my extremely expensive servers running the official OS.

        If you’re going to be un portable and broken let’s cut out the middleman and just use bash scripts.

            • Tony Wu@lemmy.world
              link
              fedilink
              English
              arrow-up
              1
              ·
              edit-2
              53 minutes ago

              Making playbook portable is a choice, but there are other benefits like error handling and conditional and delayed actions that you can’t easily do with bash.

            • frongt@lemmy.zip
              link
              fedilink
              English
              arrow-up
              1
              ·
              2 hours ago

              Running something against a bunch of systems. Ideally idempotence, too, unless you’re doing something unsupported and then it’s up to you to ensure.