Automated changes from linter ;P
This commit is contained in:
parent
44b73a216f
commit
f7f04e7a41
65 changed files with 392 additions and 324 deletions
|
@ -1,11 +1,11 @@
|
|||
---
|
||||
- name: Install dependencies
|
||||
apt:
|
||||
ansible.builtin.apt:
|
||||
name: virtualenv
|
||||
state: present
|
||||
|
||||
- name: Clone soundboard source
|
||||
git:
|
||||
ansible.builtin.git:
|
||||
repo: https://github.com/polyfloyd/mqtt-soundboard.git
|
||||
version: main
|
||||
dest: /opt/soundboard
|
||||
|
@ -13,17 +13,19 @@
|
|||
notify: restart soundboard
|
||||
|
||||
- name: Create virtualenv
|
||||
command: virtualenv /opt/soundboard/.venv
|
||||
ansible.builtin.command:
|
||||
cmd: virtualenv /opt/soundboard/.venv
|
||||
args:
|
||||
creates: /opt/soundboard/.venv
|
||||
|
||||
- name: Install Python dependencies
|
||||
shell: . .venv/bin/activate && pip install -r requirements.txt
|
||||
ansible.builtin.shell:
|
||||
cmd: . .venv/bin/activate && pip install -r requirements.txt
|
||||
args:
|
||||
chdir: /opt/soundboard
|
||||
|
||||
- name: Install soundboard config file
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: soundboard.yaml
|
||||
dest: /etc/soundboard.yaml
|
||||
owner: root
|
||||
|
@ -32,7 +34,7 @@
|
|||
notify: restart soundboard
|
||||
|
||||
- name: Install soundboard service file
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: soundboard.service
|
||||
dest: /etc/systemd/system/soundboard.service
|
||||
owner: root
|
||||
|
@ -41,7 +43,7 @@
|
|||
notify: restart soundboard
|
||||
|
||||
- name: Enable soundboard
|
||||
systemd:
|
||||
ansible.builtin.systemd:
|
||||
name: soundboard
|
||||
state: started
|
||||
enabled: true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue