Skip to content

Instantly share code, notes, and snippets.

@jigante
Forked from kacy/gist:2b9408af04c71fab686e
Last active August 29, 2015 14:07
Show Gist options
  • Save jigante/b8fb862b19128a2ff5d8 to your computer and use it in GitHub Desktop.
Save jigante/b8fb862b19128a2ff5d8 to your computer and use it in GitHub Desktop.
---
- hosts: all
user: root
sudo: true
tasks:
- name: update apt
command: apt-get update
- name: update bash
command: apt-get --only-upgrade install bash
- name: check bash fix
command: env x='() { :;}; echo vulnerable' bash -c "echo this is a test"
register: command_result
failed_when: "'error' not in command_result.stderr"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment