-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathplaybook.yml
39 lines (39 loc) · 987 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
32
33
34
35
36
37
38
39
---
- hosts: plumber
tasks:
- name: CRAN Apt key
apt_key:
keyserver: keys.gnupg.net
id: E19F5F87128899B192B1A2C2AD5F960A256A04AF
- name: CRAN Squeeze R-3.6 apt-repo
apt_repository:
repo: deb http://cloud.r-project.org/bin/linux/debian stretch-cran35/
state: present
update_cache: yes
filename: cran
- name: Install R from CRAN
package:
name: r-base
state: latest
- name: Install R deps
package:
name:
- libcurl4-openssl-dev
- libssl-dev
- libxml2-dev
state: latest
- name: Install project deps # move this?
package:
name:
- silversearcher-ag
- libsodium-dev #plumber
# TODO systemd script and api script
- name: Web server for Pins
package:
name: lighttpd
state: latest
- systemd:
name: lighttpd
state: started
enabled: yes
become: yes