Install basic packages and setup a fresh Ubuntu node on EC2.
# playbook.yml
---
- hosts: app
remote_user: ubuntu
roles:
-
role: .
become: true
become_method: sudo
ansible-playbook \
--private-key=/path/to/private-key.pem \
--inventory-file=/path/to/hosts \
path/to/playbook.yml
BSD