/ansible-playbook-ubuntu

Ansible Playbook for Ubuntu Installation.

Primary LanguageShellMIT LicenseMIT

Ansible Playbook for Ubuntu

Build Status GitHub tag GitHub license

Ansible Playbook for Ubuntu Installation.

Requirements

This playbook require Ansible 2.0 or higher.

This playbook was designed for Ubuntu Server 14.04 LTS.

Quick Start

All-in-one (AIO) builds are a great way to perform an Ubuntu build for

  • A development environment
  • An overview of how all of the Ubuntu services fit together
  • A simple lab deployment

Although AIO builds aren’t recommended for large production deployments, they’re great for smaller proof-of-concept deployments.

AIO with Customization

There are four main steps for running a customized AIO build:

  • Install Ansible
  • Initial roles, vars and hosts bootstrap
  • Configuration (this step is optional)
  • Run playbooks

Start by cloning the ansible-playbook-ubuntu repository and changing into the repository root directory:

$ git clone https://github.com/pantarei/ansible-playbook-ubuntu \
    /opt/ansible-playbook-ubuntu
$ cd /opt/ansible-playbook-ubuntu

Next bootstrap Ansible by executing:

$ scripts/bootstrap-ansible.sh

Now we can bootstrap Ansible's roles, vars and hosts by executing:

$ scripts/bootstrap-aio.sh

By default the scripts deploy only general Ubuntu setup. At this point you may optionally adjuct which services are deployed within your AIO build. Look at the group_vars/all and inventory/localhost for more details. For example, if you'd like to upgrade your Ubuntu set the apt_upgrade as full at group_vars/all:

apt_upgrade: full

Finally, run the plabooks by executing:

$ scripts/run-playbooks.sh

Dependencies

License

Author Information