使用 cloud-init 安装 apt 包
此 cloud-init 示例在基于 Debian 或 Ubuntu 的系统上安装 nginx:
cloud_init_packages.yml
packages:
- nginx如果你想启用包升级,使用:
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