Skip to content

Commit

Permalink
improve README and systemd
Browse files Browse the repository at this point in the history
  • Loading branch information
DO1JLR committed Jan 18, 2025
1 parent 255a71a commit b98213c
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 2 deletions.
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
[![Ansible Galaxy](https://ansible.l3d.space/svg/$namespace.$role.svg)](https://galaxy.ansible.com/ui/standalone/roles/$namespace/$role/)
[![BSD-3 Clause](https://ansible.l3d.space/svg/$namespace.$role_license.svg)](LICENSE)
[![MIT License](https://ansible.l3d.space/svg/$namespace.$role_license.svg)](LICENSE)
[![Maintainance](https://ansible.l3d.space/svg/$namespace.$role_maintainance.svg)](https://ansible.l3d.space/#$namespace.$role)

ansible role CWTV Telegram Jitsi bot
=======================
Work in Progress ansible role for a Chaoswest.TV Jitsi Telegram bot...

There is a simple python Jitsi bot, that show the current Jitsi Status to a telegram chat.

Have a look at [the code](templates/cwtv_bot.py.j2) for more details...

LICENSE
-------

MIT Licnese

Author
-------

L3D <[email protected]>
9 changes: 9 additions & 0 deletions handlers/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
- name: Make sure service is restarted
listen: 'systemctl restart cwtv_telegram_bot.service'
become: true
ansible.builtin.systemd_service:
name: 'cwtv_telegram_bot.service'
state: 'started'
daemon_reload: true
enabled: true
1 change: 1 addition & 0 deletions tasks/bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
owner: 'cwtv_telegram_bot'
group: 'cwtv_telegram_bot'
mode: '0750'
notify: 'systemctl restart cwtv_telegram_bot.service'
2 changes: 2 additions & 0 deletions tasks/systemd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
owner: 'root'
group: 'root'
mode: '0644'
notify: 'systemctl restart cwtv_telegram_bot.service'

- name: Make sure services are started
become: true
Expand All @@ -15,3 +16,4 @@
state: 'started'
daemon_reload: true
enabled: true
notify: 'systemctl restart cwtv_telegram_bot.service'

Check failure on line 19 in tasks/systemd.yml

View workflow job for this annotation

GitHub Actions / Ansible Lint

yaml[None]

Syntax error: expected <block end>, but found '<block mapping start>' (syntax)

Check failure on line 19 in tasks/systemd.yml

View workflow job for this annotation

GitHub Actions / Yamllint

19:2 syntax error: expected <block end>, but found '<block mapping start>' (syntax)
1 change: 1 addition & 0 deletions tasks/user.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@
create_home: false
system: true
shell: '/bin/bash'
notify: 'systemctl restart cwtv_telegram_bot.service'

0 comments on commit b98213c

Please sign in to comment.