Installing multiple packages in Ansible - Stack Overflow
stackoverflow.com › questions › 54944080Mar 22, 2019 · Referring to the question title Installing multiple packages in Ansible this is (using the yum module ): - name: Install MongoDB yum: name: - mongodb-org-server - mongodb-org-mongos - mongodb-org-shell - mongodb-org-tools state: latest update_cache: true. Or with the apt module: - name: Install MongoDB apt: pkg: - mongodb-org-server - mongodb-org-mongos - mongodb-org-shell - mongodb-org-tools state: latest update_cache: true.