---
-name: restart chatbot
-systemd:
- scope: user
- name: urlbot-chat.service
- state: restarted
+- name: restart chatbot
+ systemd:
+ scope: user
+ name: urlbot-chat.service
+ state: restarted
-name: restart worker
-systemd:
- scope: user
- name: urlbot-worker.service
- state: restarted
+- name: restart worker
+ systemd:
+ scope: user
+ name: urlbot-worker.service
+ state: restarted
update: yes
register: source_code
# TODO: distinction of changes
+ notify:
+ - restart worker
+ - restart chatbot
- name: install bot (xmpp)
shell: "{{ venv_chatbot }}/bin/pip install -i {{pypi_mirror}} .[chatbot]"
value: "{{giphy_key}}"
tags: [render_config]
register: urlbot_config
+ notify:
+ - restart worker
+ - restart chatbot
- name: create directory for systemd unit files
shell: mkdir -p ~/.config/systemd/user/ creates=~/.config/systemd/user/
with_items:
- chat
- worker
+ notify:
+ - restart worker
+ - restart chatbot
- systemd:
name: "urlbot-{{ item }}.service"