Created
September 25, 2014 13:16
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- 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