---

- name: install supervisor
  apt: name={{ item }} state=latest update_cache=yes cache_valid_time=600
  with_items:
    - supervisor

- name: enable/start supervisor
  service: >
    name=supervisor
    state=running
    enabled=yes

---

- name: install supervisor
  apt: name={{ item }} state=latest update_cache=yes cache_valid_time=600
  with_items:
    - supervisor

- name: enable/start supervisor
  service: >
    name=supervisor
    state=started
    enabled=yes

Use state "started" instead of deprecated "running"
Use state "started" instead of deprecated "running"
