• moonpiedumplings@programming.dev
    link
    fedilink
    arrow-up
    3
    ·
    10 months ago

    It appeals to me for management of a windows machine for a few things:

    • Lots of machines at once, over winrm. Although ssh is the default, as ansible is linux first.
    • I don’t have to learn powershell - the shared language means the windows teams and the linux team don’t have to learn eachother’s language. In ansible, it’s very easy to avoid the footguns that come with something like bash, especially after you install the red hat linter, ansible-lint, which warns of ansible’s own footguns.
    • easy to version control it
    • premade stuff: the official “modules” are massive and do a lot. There are also community packages: https://galaxy.ansible.com - of course, you should probably check any stuff you run first. But ansible is very easy to read.
    • built in secret management. Encrypt secrets, but still be able to use them smoothly with the automation framework.

    For just one machine? Task scheduler is probably good enough. 2-3 machines, managed remotely? Ansible is at least worth looking at.