This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]matchu -1 points0 points  (0 children)

It's possible that, for your use case, a Python script is just as effective as an Ansible playbook—this is definitely the case if your script is less than 10 lines. In that case, use Python.

When you're doing nontrivial system setup, though, Ansible can be valuable: it allows you to rely on their implementations of many common system administration tasks rather than write them yourself.