I'm a relatively new user of Ansible. I use it to orchestrate a few groups of Linux servers. I'm now expanding that use to use Ansible's homebrew module.
Using the homebrew module, I want to assert that a list of packages are installed on my macOS boxes. So far, the best I can do is to make separate roles for each package, with each role resembling:
- name: "htop"
homebrew:
name: htop
state: present
It seems like there must be a way to give a list of packages in a single role, which I've seen before when using the Ansible apt module.
Any tips? Does the homebrew module itself expressly have to support for this sort of operation or perhaps there's something more fundamental to Ansible or even Python itself that provides what I'm looking for?
PS - You can safely assume that my macOS machines are all servers.