---

- name: Install latest st2 package
  become: yes
  apt:
    name: st2
    state: latest
  when: st2_version == "stable"
  notify:
    - restart st2

- name: Install latest st2 package
  become: yes
  apt:
    name: st2={{ st2_version }}-{{ st2_revision }}
    state: present
  when: st2_version != "stable"
  notify:
    - restart st2

- include: user.yml

- name: Configure StackStorm Authentication
  include: config_auth.yml
  when: st2_auth_enable

---
- name: Install latest st2 package
  become: yes
  apt:
    name: st2
    state: latest
  when: st2_version == "stable"
  notify:
    - restart st2

- name: Install latest st2 package
  become: yes
  apt:
    name: st2={{ st2_version }}-{{ st2_revision }}
    state: present
  when: st2_version != "stable"
  notify:
    - restart st2

- name: Create and configure StackStorm system user
  include: user.yml

- name: Configure StackStorm authentication
  include: config_auth.yml
  when: st2_auth_enable

Add description for user Task
Add description for user Task
