---
  - name: Ensure update script continues to be executable
    file: path="{{ item }}" state=touch mode="a+x"
    with_items:
     - "{{ www_base }}/update.sh"
     - "{{ www_base }}/bin/azuracast"

  - name: Run AzuraCast Setup (Install Mode)
    become: true
    become_user: azuracast
    shell: php {{ app_base }}/bin/azuracast.php azuracast:setup
    when: update_mode|bool == false

  - name: Run AzuraCast Setup (Update Mode)
    become: true
    become_user: azuracast
    shell: php {{ app_base }}/bin/azuracast.php azuracast:setup --update
    when: update_mode|bool == true

---
  - name: Ensure update script continues to be executable
    file: path="{{ item }}" state=touch mode="a+x"
    with_items:
     - "{{ www_base }}/update.sh"
     - "{{ www_base }}/bin/azuracast"

  - name: Run AzuraCast Setup (Install Mode)
    become: true
    become_user: azuracast
    shell: php {{ www_base }}/bin/azuracast.php azuracast:setup
    when: update_mode|bool == false

  - name: Run AzuraCast Setup (Update Mode)
    become: true
    become_user: azuracast
    shell: php {{ www_base }}/bin/azuracast.php azuracast:setup --update
    when: update_mode|bool == true

Fix CLI path on Traditional installs.
Fix CLI path on Traditional installs.

