|
|
|
|
|
by dorfsmay
3897 days ago
|
|
I think when ansible started it wasn't obvious that logic (loops, conditional etc...) would be needed eventually. By the time it became obvious it was going to be required, it was too late to change. Using jinja2 for markup compounded the issue in my opinion, as it has no loops and logic is less than obvious (compared to mako for example). Still I find its agentless model, the idempotent model, being able to use it on machines where you don't have root access etc... gives it a place that nobody had fulfilled. |
|
This comment makes pretty much no sense at all. Example of a loop in jinja2:
{% for item in ("one", "two", "three") %}
{% endfor %}The logic is pure python minus perhaps setting variables ie:
{% set name = "dorfsmay" %}
{% if name == "dorfsmay" or name.startswith("dorfs") %}
{% endif %}