Re:Every Sufficiently Advanced Configuration Language Is Wrong
by athorax on Friday June 24, 2022 @11:47PM
(#31872402)
That is exactly what it is though. The Ansible CLI is just a client of that API. You can easily interface with the library itself in python
[ Parent
| on HN ]
Re:Every Sufficiently Advanced Configuration Language Is Wrong
by bvrmn on Saturday June 25, 2022 @02:37AM
(#31873086)
AFAIK Ansible core operates in terms of tasks and plays. The only API it provides is how to construct a list of tasks and how to execute it. One has no remote state/vars at the construction time and has to use "when" or shell logic at execution time as in YAML.