---
- name: Update Apt Cache
  apt: update_cache=yes cache_valid_time=3600

- name: Install Prerequisites
  apt: name={{ item }} state=present
  with_items:
  - supervisor

- name: Install Supervisor Config
  template: src=../templates/supervisord.conf.j2 dest=/etc/supervisor/conf.d/supervisord.conf owner=root group=root

- name: Add www-data Group
  group: name=www-data state=present

- name: Add www-data User
  user: name=www-data group=www-data home=/var/www shell=/bin/bash state=present

---
- name: Update Apt Cache
  apt: update_cache=yes cache_valid_time=3600

- name: Install Prerequisites
  apt: name={{ item }} state=present
  with_items:
  - supervisor

- name: Install Supervisor Config
  template: src=../templates/supervisord.conf.j2 dest=/etc/supervisor/conf.d/supervisord.conf owner=root group=root

- name: Add www-data Group
  group: name=www-data gid=1000 state=present

- name: Add www-data User
  user: name=www-data group=www-data home=/var/www shell=/bin/bash uid=1000 state=present

Set www-data uid and gid.
Set www-data uid and gid.
