4 ms·
> >bash and python > Neither of those of idempotent. There is nothing magical about Ansible that makes it idempotent by default either. The simple stuff like
by quadrifoliate 5y ago
> >bash and python
> Neither of those of idempotent.
There is nothing magical about Ansible that makes it idempotent by default either.
The simple stuff like having specific versions of a package installed that you might be thinking of is just using Python under the hood. If you get into more complicated stuff, especially around custom infrastructure abstractions you use internally, guess what, you will have to write a bunch of Python and effectively call it from Ansible. And you will have to put in extra effort to make sure it's idempotent.
At which point you start thinking...why not just write a Python script instead? At least that gives you all of the flexibility.
- deleted 5y ago[deleted]