21.12.2016 · The docs for the apt module state that when the deb contains :// it'll try and download the package. This was added with Ansible 2.1 So, I assume you are using an ansible version before 2.1
21.03.2019 · To my surprise I didn't find the simplest solution in all the answers, so here it is. 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.
23.02.2020 · Install a .deb file or package using ansible apt. ansible apt module can be used to install the .deb packages as well additionally ansible apt can download the file from remote URL and install it as well. So here is the playbook where we are trying to install a *.deb package. But the Source of these deb files are different.
Synopsis . Manages apt packages (such as for Debian/Ubuntu). ... Requires the xz-utils package to extract the control file of the deb package to install.