/ansible-init

Initial bootstrap playbook for a fresh server.

MIT LicenseMIT

ansible-init for Debian/Ubuntu

Ansible role for initial server provisioning by doing some super basic actions such as updating the system and installing core packages.

Overwriting Variables

The vars/main.yml file should contain your list of packages you want to install in order to override defaults found in defaults/main.yml. Additionally, you can overwrite the variables as part of your playbook.

---
system_packages:
  - build-essential
  - python-software-properties
  - curl
  - etc

Note: Some packages will already be in place with default Ubuntu install but there is no harm in making sure.

Debugging

If you run into errors, uncomment the - debug: msg="{{ ... }}" statements.