Automated changes from linter ;P

This commit is contained in:
Mark Janssen 2024-07-11 20:47:52 +02:00
parent 44b73a216f
commit f7f04e7a41
Signed by: foobar
GPG key ID: D8674D8FC4F69BD2
65 changed files with 392 additions and 324 deletions

View file

@ -1,10 +1,10 @@
---
- name: Install dependencies
apt:
ansible.builtin.apt:
name: curl
- name: Install fetch script
template:
ansible.builtin.template:
src: bambulab-fetch.sh
dest: /opt/bambulab-fetch.sh
owner: root
@ -12,7 +12,7 @@
mode: 0755
- name: Install service
template:
ansible.builtin.template:
src: bambulab-fetch.service
dest: /etc/systemd/system/bambulab-fetch.service
owner: root
@ -21,7 +21,7 @@
notify: daemon reload
- name: Install timer
template:
ansible.builtin.template:
src: bambulab-fetch.timer
dest: /etc/systemd/system/bambulab-fetch.timer
owner: root
@ -30,7 +30,7 @@
notify: daemon reload
- name: Enable timer
systemd:
ansible.builtin.systemd:
name: bambulab-fetch
state: started
enabled: yes

View file

@ -1,9 +1,12 @@
---
- tags: photos-gallery
import_tasks: photo-gallery.yaml
ansible.builtin.import_tasks:
file: photo-gallery.yaml
- tags: photos-mqtt
import_tasks: photos2mqtt.yaml
ansible.builtin.import_tasks:
file: photos2mqtt.yaml
- tags: bambulab-fetch
import_tasks: bambulab-fetch.yaml
ansible.builtin.import_tasks:
file: bambulab-fetch.yaml

View file

@ -1,10 +1,10 @@
---
- name: Install dependencies
apt:
ansible.builtin.apt:
name: [ nodejs, npm, imagemagick, graphicsmagick, ffmpeg ]
- name: Clone source
git:
ansible.builtin.git:
repo: https://github.com/bitlair/photo-gallery.git
version: master
dest: /opt/photo-gallery
@ -12,7 +12,7 @@
notify: restart photo-gallery
- name: Install photo-gallery config file
template:
ansible.builtin.template:
src: photo-gallery-config.json
dest: /opt/photo-gallery/config.json
owner: root
@ -21,7 +21,7 @@
notify: restart photo-gallery
- name: Install photo-gallery service file
template:
ansible.builtin.template:
src: photo-gallery.service
dest: /etc/systemd/system/photo-gallery.service
owner: root
@ -30,7 +30,7 @@
notify: restart photo-gallery
- name: Start photo-gallery
systemd:
ansible.builtin.systemd:
name: photo-gallery
state: started
enabled: yes

View file

@ -1,15 +1,16 @@
---
- name: Install dependencies
apt:
ansible.builtin.apt:
name:
- make
- liblinux-inotify2-perl
- name: Install mqtt-simple
command: cpan Net::MQTT::Simple
ansible.builtin.command:
cmd: cpan Net::MQTT::Simple
- name: Install photos2mqtt
template:
ansible.builtin.template:
src: photos2mqtt.pl
dest: /opt/photos2mqtt.pl
owner: root
@ -18,7 +19,7 @@
notify: restart photos2mqtt
- name: Install photos2mqtt service file
template:
ansible.builtin.template:
src: photos2mqtt.service
dest: /etc/systemd/system/photos2mqtt.service
owner: root
@ -27,7 +28,7 @@
notify: restart photos2mqtt
- name: Start photos2mqtt
systemd:
ansible.builtin.systemd:
name: photos2mqtt
state: started
enabled: yes