Skip to content

Instantly share code, notes, and snippets.

@akuznecov
Created September 25, 2014 19:25
Show Gist options
  • Select an option

  • Save akuznecov/2a84935e190a88db4cc6 to your computer and use it in GitHub Desktop.

Select an option

Save akuznecov/2a84935e190a88db4cc6 to your computer and use it in GitHub Desktop.
Simple Ansible playbook to install patched Bash packages (from distro repositories)
---
- name: 'Fix(?) ShellShock'
hosts: "{{ target }}"
user: "{{ user }}"
sudo: yes
tasks:
- apt: name=bash
state=latest
update_cache=yes
when: ansible_os_family == "Debian"
- yum: name=bash
state=latest
when: ansible_os_family == "RedHat"
@akuznecov
Copy link
Author

just run as
ansible-playbook -i YOUR_INVENTORY_FILE manual-shellshock-fix.yml --extra-vars "target=YOUR_HOSTGROUP user=YOUR_SUDOER"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment