We have been writing Ansible tasks wrongAnsible's declarative nature could benefit from a more expressive syntax akin to programming languages for better readability and usability.
How to execute (exec) external system commands in ScalaScala provides a more intuitive and Perl/Ruby-like way to execute external system commands compared to Java.