3 ms·
Or they could define the list of packages as an array once? https://stackoverflow.com/questions/23507589/is-it-possible-to-set-a-fact-of-an-array-in-ansible htt
by crmrc114 6y ago
Or they could define the list of packages as an array once? https://stackoverflow.com/questions/23507589/is-it-possible-to-set-a-fact-of-an-array-in-ansible 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.