-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaybook.yml
33 lines (28 loc) · 954 Bytes
/
playbook.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
---
- name: Setup project
hosts: localhost
tasks:
- name: Install specified python requirements
pip:
executable: pip3
requirements: "{{ lookup('env','PWD') }}/PutNBADataFunction/requirements.txt"
- name: Create daily cron job at 10 am to keep data up to date
cron:
name: Update NBA table with last nights games
minute: 0
hour: 10
day: "*"
month: "*"
weekday: "*"
job: python3 "{{ lookup('env','PWD') }}/PutNBADataFunction/add_daily.py"
- name: Create daily cron job at 10:30 am to update matchup predictions
cron:
name: Update game_predictions table with latest predictions
minute: 30
hour: 10
day: "*"
month: "*"
weekday: "*"
job: python3 "{{ lookup('env','PWD') }}/store_prediction.py"
- name: Run script to create dynamoDB table and populate
command: python3 "{{ lookup('env','PWD') }}/PutNBADataFunction/put_NBA_data.py"