
Some of us including me would have most often referred ubuntu apt (aptitude) as apt-get we use both apt and apt-get interchangeably Here is the quick screen snip of executing this playbook. Same way here in ansible, the following playbook/play would do that for you - name: Playbook to install NGINXīecome: true tasks: - name: Ansible apt install nginx In typical Ubuntu machine, in order to install a package, you would execute the following command apt install nginx



How to remove a Package with Ansible apt.How to install a Package with Ansible apt.
