Skip to content

Instantly share code, notes, and snippets.

@jiphex
Created September 25, 2014 13:16
Show Gist options
  • Save jiphex/402897b706bcb8954e7c to your computer and use it in GitHub Desktop.
Save jiphex/402897b706bcb8954e7c to your computer and use it in GitHub Desktop.
Ansible Playbook to upgrade Bash to latest version (and add Squeeze LTS if necessary)
---
- hosts: all
sudo: yes
tasks:
- name: make sure lsb_release is installed
apt: name=lsb-release
- name: add squeeze-lts repo if squeeze
apt_repository: repo='deb http://mirror.bytemark.co.uk/debian/ squeeze-lts main contrib non-free'
when: ansible_distribution_major_version == "6" and ansible_distribution == "Debian"
- name: upgrade bash to the latest version
apt: update_cache=yes name=bash state=latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment