Re:Replacing Ansible with salt-ssh
by Arnavion on Thursday October 22, 2020 @01:58PM
(#24861034)
Their point is not about how to pass in those parameters to the `package` task. They want to reuse the list of items as the value of the tags list, which they can't without duplicating the list.
[ Parent
| on HN ]
Or they could define the list of packages as an array once? https://stackoverflow.com/questions/23507589/is-it-possible-...
Then just point the module to the array, like in the linked example.
edit; Check out Spivak's solution in the comments below. Interrogate the host and find out what is needed, then apply the install- saves you all the time of getting back 'ok' results.