services/discord_bot: New bottle-clip implementation
Some checks failed
Test / build (push) Failing after 54s
Some checks failed
Test / build (push) Failing after 54s
This commit is contained in:
parent
3a0071abfa
commit
1d8e07bf04
2 changed files with 13 additions and 4 deletions
|
@ -2,7 +2,9 @@
|
|||
|
||||
- name: Install dependencies
|
||||
ansible.builtin.apt:
|
||||
name: virtualenv
|
||||
name:
|
||||
- openscad
|
||||
- virtualenv
|
||||
|
||||
- name: Create virtualenv
|
||||
ansible.builtin.command:
|
||||
|
@ -10,14 +12,21 @@
|
|||
args:
|
||||
creates: /var/lib/discord-bot/.venv
|
||||
|
||||
- name: Clone source
|
||||
- name: Clone bottleclip source
|
||||
ansible.builtin.git:
|
||||
repo: https://git.bitlair.nl/bitlair/bottle-clip.git
|
||||
version: main
|
||||
dest: /var/lib/bottle-clip
|
||||
accept_hostkey: yes
|
||||
notify: Restart discord-bot
|
||||
|
||||
- name: Clone discord-bot source
|
||||
ansible.builtin.git:
|
||||
repo: https://git.bitlair.nl/bitlair/discord-bot.git
|
||||
version: main
|
||||
dest: /var/lib/discord-bot
|
||||
accept_hostkey: yes
|
||||
notify: Restart discord-bot
|
||||
ignore_errors: true
|
||||
|
||||
- name: Install Python dependencies
|
||||
ansible.builtin.shell:
|
||||
|
|
|
@ -13,7 +13,7 @@ DynamicUser=true
|
|||
Environment="MQTT_HOST={{ mqtt_internal_host }}"
|
||||
Environment="DISCORD_WEBHOOK_URL={{ lookup('passwordstore', 'services/discord', subkey='webhook_url') }}"
|
||||
Environment="DISCORD_TOKEN={{ lookup('passwordstore', 'services/discord', subkey='token') }}"
|
||||
Environment="BOTTLECLIP_GIT_TOKEN={{ lookup('passwordstore', 'services/discord', subkey='bottleclip_git_token') }}"
|
||||
Environment="BOTTLECLIP_RESOURCES=/var/lib/bottle-clip"
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue