softwarefactory-project / dhall-ansible

Ansible definitions with Dhall
Apache License 2.0
66 stars 13 forks source link

Custom modules #13

Closed sobolevn closed 3 years ago

sobolevn commented 3 years ago

Hi! Thanks a lot for writting this!

I am currently wondering how one should work with custom ansible modules? For example, you can install something from ansible-galaxy and then use it like foo: prop=1

How can we do that with dhall-ansible? Should we create a new Type definition and extend existing one with a new module?

TristanCacqueray commented 3 years ago

That seems correct, you would need to extend the Task.Type using the //\\ operator, here is an example ^