Created
September 25, 2014 19:25
-
-
Save akuznecov/2a84935e190a88db4cc6 to your computer and use it in GitHub Desktop.
Simple Ansible playbook to install patched Bash packages (from distro repositories)
This file contains hidden or 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
| --- | |
| - 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" |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
just run as
ansible-playbook -i YOUR_INVENTORY_FILE manual-shellshock-fix.yml --extra-vars "target=YOUR_HOSTGROUP user=YOUR_SUDOER"