- import_role: name: jail tasks_from: jail_setup - name: Clone thelounge shell: | git clone --depth 1 --branch v4.4.3 https://github.com/thelounge/thelounge.git /usr/local/share/thelounge args: creates: /usr/local/share/thelounge - name: Install thelounge dependencies and build shell: cd /usr/local/share/thelounge && yarn install && NODE_ENV=production yarn build args: creates: /usr/local/share/thelounge/dist - name: Link thelounge binary file: src: /usr/local/share/thelounge/index.js dest: /usr/local/bin/thelounge state: link - name: Deploy thelounge config copy: src: "{{ jail_role_dir }}/files/config.js" dest: /var/db/thelounge/config.js owner: root group: wheel mode: "0644" notify: Restart thelounge - import_role: name: jail tasks_from: jail_launch