4 ms·
Ansible is nice, but it has some annoying quirks: - YAML quoting. - Quasi Python expressions from Jinja 2. - Which fields are expressions and which ones are
by cpburns2009 10y ago
Ansible is nice, but it has some annoying quirks:
- YAML quoting.
- Quasi Python expressions from Jinja 2.
- Which fields are expressions and which ones are strings is not always clear.
- mwpmaybe 10y agoAgreed, although I will say the templating has improved over the past year to be more consistent and full-featured cf. Jinja 2 proper, and they are now enforcing interpolation instead of inferring expressions (e.g. if foo is an array you have to write `with_items: "{{ foo }}"`; `with_items: foo` was deprecated, and is an error as of Ansible 2.0 IIRC). The quoting issue is still there, although once you learn the two or three rules it really isn't a day-to-day issue, and Ansible tries to warn you if and when it sees something problematic.