---

- name: uninstall supervisord (yum)
  yum: name=supervisor state=absent
  sudo: true

- name: install pip
  yum: name=python-pip state=installed
  sudo: true

- name: install supervisord (pip)
  pip: name=supervisor state=present version=3.3
  sudo: true

- name: install supervisord init script
  copy:
    src: supervisord
    dest: /etc/rc.d/init.d/supervisord
    mode: 0755
  sudo: true

- name: install supervisord config
  template:
    src: supervisord.conf.j2
    dest: /etc/supervisord.conf
  sudo: true
  notify: restart supervisord

- name: create supervisord service dir
  file:
    name: /etc/supervisord.conf.d
    state: directory
    mode: 0755
  sudo: true

- name: ensure supervisord is running
  service: name=supervisord state=started
  sudo: true

---

- name: uninstall supervisord (yum)
  yum: name=supervisor state=absent
  sudo: true

- name: install pip
  yum: name=python-pip state=installed
  sudo: true

- name: install python-meld3
  yum: name=python-meld3 state=installed
  sudo: true

- name: install supervisord (pip)
  pip: name=supervisor state=present version=3.3
  sudo: true

- name: install supervisord init script
  copy:
    src: supervisord
    dest: /etc/rc.d/init.d/supervisord
    mode: 0755
  sudo: true

- name: install supervisord config
  template:
    src: supervisord.conf.j2
    dest: /etc/supervisord.conf
  sudo: true
  notify: restart supervisord

- name: create supervisord service dir
  file:
    name: /etc/supervisord.conf.d
    state: directory
    mode: 0755
  sudo: true

- name: create /var/log/supervisor
  file:
    name: /var/log/supervisor
    state: directory
    mode: 0700
  sudo: true

- name: ensure supervisord is running
  service: name=supervisord state=started
  sudo: true

Add a couple small tasks that were missing
Add a couple small tasks that were missing

- Install python-meld3 with yum to avoid needing to upgrade Distribute.

- Create the log directory for supervisord
