services: Add flipdot
This commit is contained in:
parent
cdc9f519f0
commit
2d22a6e769
7 changed files with 84 additions and 0 deletions
28
roles/services/tasks/flipdot.yaml
Normal file
28
roles/services/tasks/flipdot.yaml
Normal file
|
@ -0,0 +1,28 @@
|
|||
---
|
||||
- name: Install flipdot scripts
|
||||
template:
|
||||
src: "{{ item }}"
|
||||
dest: "/usr/local/bin/{{ item }}"
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0755
|
||||
notify: restart flipdot
|
||||
with_items:
|
||||
- flipdot-reboot.sh
|
||||
- flipdot-time.sh
|
||||
|
||||
- name: Install flipdot service
|
||||
template:
|
||||
src: flipdot.service
|
||||
dest: /etc/systemd/system/flipdot.service
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
notify: restart flipdot
|
||||
|
||||
- name: Start flipdot
|
||||
systemd:
|
||||
name: flipdot
|
||||
state: started
|
||||
enabled: yes
|
||||
daemon_reload: true
|
|
@ -1,4 +1,7 @@
|
|||
---
|
||||
- tags: services_flipdot
|
||||
import_tasks: flipdot.yaml
|
||||
|
||||
- tags: services_siahsd
|
||||
import_tasks: siahsd.yaml
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue