Installing apt packages using cloud-init
This cloud-init example installs nginx on Debian- or Ubuntu- based systems:
cloud_init_packages.yml
packages:
- nginxIf you want to enable upgrading packages, use:
cloud_init_upgrade.yml
package_upgrade: true
packages:
- nginxCheck out similar posts by category:
Cloud, Cloud-Init
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow