---
- apt:
    name: supervisor
    state: present
  become: yes

- service:
    name: supervisor
    enabled: yes
    state: started
  become: yes

---
- apt:
    name: supervisor
    state: present
  become: yes

- lineinfile:
    regexp: "^chmod="
    line: "chmod=0755"
    dest: /etc/supervisor/supervisord.conf
  become: yes
  register: _supervisord_conf

- service:
    name: supervisor
    state: restarted
  when: "{{ _supervisord_conf.changed }}"
  become: yes

- service:
    name: supervisor
    enabled: yes
    state: started
  become: yes

Update supervisor config so that normal use can view statuses
Update supervisor config so that normal use can view statuses
