Tag Archives: ssl

Use ansible to update openssl for heartbleed

Here is a quick and dirty ansible playbook to update to a specific version of libssl1.0.0 and openssl on my ubuntu 12.04 boxes:

---
- hosts: all
  sudo: True
  tasks:
    - name: update openssl for heartbleed
      apt: name={{ item }} state=installed
      with_items:
        - openssl=1.0.1-4ubuntu5.12
        - libssl1.0.0=1.0.1-4ubuntu5.12
      notify:
        - restart apache2
  handlers:
    - name: restart apache2
      action: service name=apache2 state=restarte