-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall-components.yml
57 lines (45 loc) · 1.36 KB
/
install-components.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
- name: Install twinkle and sox components
hosts: raspis
become: yes
vars_files:
- vars/rootio_vars.yml
tasks:
- name: Install twinkle
apt:
name: twinkle
- name: install Sox
apt:
name: sox
- name: make the dir for the twinkle config
file:
path: "{{ twinkle_settings.config_dir }}"
state: directory
recurse: yes
mode: 055
- name: Copy Twinkle profile config over
template:
src: templates/conf/raspi.j2
dest: "{{ twinkle_settings.config_dir }}/raspi.cfg"
- name: Copy Twinkle global config
template:
src: templates/conf/twinkle.sys.j2
dest: /root/.twinkle/twinkle.sys
- name: create Twinkle service script
template:
src: templates/service/TwinkleService.j2
dest: "{{ service_settings.script_dir }}/TwinkleService.sh"
mode: a+x
- name: create Twinkle service configuration
template:
src: templates/service/twinkle.service.j2
dest: "{{ service_settings.service_dir }}/twinkle.service"
- name: enable the service to start on reboots
shell: systemctl enable twinkle
- name: Reload Systemctl
systemd:
daemon_reload: yes
- name: start the twinkle service
systemd:
state: started
name: twinkle