Skip to content

Instantly share code, notes, and snippets.

@dbarlett
Last active January 11, 2020 22:57
Show Gist options
  • Save dbarlett/5079802 to your computer and use it in GitHub Desktop.
Save dbarlett/5079802 to your computer and use it in GitHub Desktop.
Standalone Ansible playbook for (X)ubuntu post-install tasks.
---
- hosts: ubuntu
user: admin
sudo: yes
tasks:
- name: Test distribution
fail: msg="Not Ubuntu, aborting"
when_string: $ansible_distribution != "Ubuntu"
- name: Install prerequisites for PPA management
apt: pkg=$item state=present update_cache=yes
with_items:
- python-software-properties
- software-properties-common
- name: Add PPAs
apt_repository: repo=$item
with_items:
- ppa:kevin-mehall/pithos-daily
- ppa:x2go/stable
- name: Uninstall cruft
apt: pkg=$item state=absent
with_items:
- abiword-common
- name: Install packages
apt: pkg=$item state=present update_cache=yes
with_items:
# System
- gparted
- ecryptfs-utils
- unetbootin
# VCS
- git
- gitg
- git-svn
- meld
# Text and graphics
- gedit
- libreoffice-calc
- libreoffice-core
- libreoffice-math
- libreoffice-impress
- libreoffice-pdfimport
- libreoffice-writer
- pdfmod
- gimp
- inkscape
- shutter
# Package management
- python-pip
- synaptic
# Network
- chromium-browser
- filezilla
- transmission
- grsync
- remmina
- pyhoca-gui
- wireshark
- zenmap
# Media
- pithos
- vlc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment