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.
- Git
- Ansible 2+ (automatically installed from Ansible offical PPA with the provided install.sh script)
- 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
- Review and customize the playbook
ansible-desktop.yml
- Update settings in
group_vars/all.yml
.
To install a new role from Galaxy:
ansible-galaxy install username.rolename
To update a Galaxy role:
ansible-galaxy install --force username.rolename
To run the playbook:
ansible-playbook ansible-desktop.yml --ask-become-pass
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
- Name:
- 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:
- See this thread: https://superuser.com/q/633431
- If you get an error copying VM files because they are too large, see this article.
- After copying and adding VM, update shared folder under Settings.
-
tmux
- To install plugins:
tmux
> CTRL-B > I
- To install plugins:
See ansible-desktop.yml
for the roles used by this playbook. A summary of many roles can be found at: