---
- name: install postgresql packages
  package: name={{ item }} state=present
  with_items:
    - python-psycopg2
    - postgresql-server
    - postgresql
    - pg-semver

- name: install ssl packages for https
  package: name={{ item }} state=present
  with_items:
    - openssl
    - mod_ssl

- name: memcached rhel
  package: name={{ item }} state=present
  with_items:
    - memcached
    - python-memcached
  when: ansible_distribution == "RedHat" and faf_web_cache_type == "memcached"

- name: memcached fedora
  package: name={{ item }} state=present
  with_items:
    - libmemcached
    - memcached
    - zlib
    - python-pylibmc
  when: ansible_distribution == "Fedora" and faf_web_cache_type == "memcached"
