forked from bitlair/ansible
Automated changes from linter ;P
This commit is contained in:
parent
44b73a216f
commit
f7f04e7a41
65 changed files with 392 additions and 324 deletions
|
@ -1,12 +1,12 @@
|
|||
---
|
||||
- name: restart photo-gallery
|
||||
systemd:
|
||||
ansible.builtin.systemd:
|
||||
name: photo-gallery
|
||||
state: restarted
|
||||
daemon_reload: true
|
||||
|
||||
- name: restart photos2mqtt
|
||||
systemd:
|
||||
ansible.builtin.systemd:
|
||||
name: photos2mqtt
|
||||
state: restarted
|
||||
daemon_reload: true
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue