Re:Ansible 101 by Jeff Geerling – new series on YouTube
by BiteCode_dev on Monday March 23, 2020 @08:35AM
(#22663422)
Basic Python syntax is enough for most playbooks, and it's no more difficult to learn than the ansible yaml dsl.
Anybody provisioning a machine knows a little bit of bash, and most probably python. Python is way more "used all over the place" than yaml.
Worst of all, when you are a beginner, ansible yaml errors are an utter mystery.
With Ansible, you can go _very_ far before you have to know anything about Python (well, most of the time—annoyingly, there are situations like naming groups where Python's variable syntax leaks through currently).
It would be like making people know basic Go syntax just to write or edit a Kubernetes manifest—that immediately limits its appeal to those who have at least a passing interest in Go (which is a much smaller audience than 'willing to learn YAML, which is used all over the place').