Skip to content

Latest commit

 

History

History
83 lines (54 loc) · 2.64 KB

README.md

File metadata and controls

83 lines (54 loc) · 2.64 KB

Ansible Ubuntu Workstation

Ansible playbook designed to quickly deploy a new Ubuntu workstation.

This was based largely on https://github.com/Benoth/ansible-ubuntu. If you're building your own, I'd recommend starting there.

Requirements

  • Git
  • Ansible 2+ (automatically installed from Ansible offical PPA with the provided install.sh script)

Installation

  1. First, install Git and Ansible using the install script :
sudo apt-get install git
git clone https://github.com/tatwell/ansible-ubuntu-workstation.git
cd ansible-ubuntu-workstation
./install.sh
  1. Review and customize the playbook ansible-desktop.yml
  2. Update settings in group_vars/all.yml.

Galaxy roles

To install a new role from Galaxy:

ansible-galaxy install username.rolename

To update a Galaxy role:

ansible-galaxy install --force username.rolename

Usage

To run the playbook:

ansible-playbook ansible-desktop.yml --ask-become-pass

Manual Steps

After running the playbook, I still need to do the following tasks manually:

  • Reload the shell to enable updates:

      source ~/.bashrc
      source /etc/profile
    
  • Create default user postgresql database:

      createdb
    
      # Now you should be able to connect to postgres.
      psql
    
  • On Jenkins server, add Python installations for the Shining Panda plugin:

    • Manage Jenkins > Global Tool Configuration > Python installations
    • Input following settings:
      • Name: Jenkins-Pyenv-Python-2.7.8
      • Home or executable: /var/lib/jenkins/pyenv/versions/2.7.8/bin/python2
    • Push Add Python button.
  • As jenkins user, update password settings in /var/lib/jenkins/.env/local-wiki.env.

  • Configure backups:

    • System Settings > Backups > Install
    • Configure settings (menu on left of settings dialog)
    • Turn on backups (toggle switch in upper right of dialog to ON)
    • For an automated approach, see these roles in Galaxy.
  • Move existing VirtualBox VMs:

  • tmux

    • To install plugins: tmux > CTRL-B > I

Roles

See ansible-desktop.yml for the roles used by this playbook. A summary of many roles can be found at: