-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.yml
51 lines (51 loc) · 1.29 KB
/
main.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
---
- name: Install Python blinkt package
become: true
pip:
name: blinkt
state: latest
- name: Install Python nre-darwin-py package
become: true
pip:
name: nre-darwin-py
state: latest
- name: Put DARWIN_WEBSERVICE_API_KEY in /etc/environment
become: true
lineinfile:
dest: /etc/environment
state: present
line: 'DARWIN_WEBSERVICE_API_KEY={{darwinKey}}'
- name: Put DEPARTURE_CRS_CODE in /etc/environment
become: true
lineinfile:
dest: /etc/environment
state: present
line: 'DEPARTURE_CRS_CODE={{departureCRSCode}}'
- name: Put DESTINATION_CRS_CODE in /etc/environment
become: true
lineinfile:
dest: /etc/environment
state: present
line: 'DESTINATION_CRS_CODE={{destinationCRSCode}}'
- name: Put legacy mode train notifier in /root
become: true
copy:
src: ~/PiTrains/PiTrainsLegacyMode.py
dest: /root/PiTrainsLegacyMode.py
owner: root
group: root
mode: 0700
- name: Put improved mode train notifier in /root
become: true
copy:
src: ~/PiTrains/PiTrainsImprovedMode.py
dest: /root/PiTrainsImprovedMode.py
owner: root
group: root
mode: 0700
- name: Add improved mode train notifier to root's crontab
become: true
cron:
user: root
name: "PiTrains"
job: "/root/PiTrainsImprovedMode.py"