- name: install react-bot dependencies apt: name: [pipenv, git] - name: create react-bot user user: name: react-bot groups: signald - name: clone the repo git: repo: https://gitlab.com/thefinn93/react-bot dest: /home/react-bot/react-bot notify: - install react-bot python dependencies - restart react-bot become: true become_user: react-bot - name: configure react-bot template: src: react-bot.json dest: /home/react-bot/react-bot/settings.json notify: - restart react-bot become: true become_user: react-bot - name: install react-bot.service template: src: react-bot.service dest: /etc/systemd/system/react-bot.service notify: - systemctl daemon-reload - restart react-bot - name: enable react-bot service service: name: react-bot enabled: true