forked from map7/ansible_recipes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathandre-notebook.yml
More file actions
67 lines (57 loc) · 1.65 KB
/
andre-notebook.yml
File metadata and controls
67 lines (57 loc) · 1.65 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
---
#
# Webserver for running Ruby on Rails with postgresql & node.
#
# Run
# ansible-playbook webserver.yml -b -v
# -b become sudo
# -v verbose
- hosts: dev-notebook
user: andre
vars:
repo: testing
gituser: drej2k
monitor_1: "HDMI2"
monitor_2: "eDP1"
monitor_orientation: "--left-of"
output_mode: "--auto"
vars_files:
- "vars/defaults.yml"
- "vars/$ansible_distribution-$ansible_architecture.yml"
- "vars/$ansible_distribution.yml"
pre_tasks:
# Required on Debian 8 minimum install
- name: install python-apt
command: >
apt-get install python-apt -y -q
creates=/usr/share/doc/python-apt
sudo: yes
roles:
# Issues: https://github.com/SamyRoad/ansible-rbenv/issues/1
# - role: mmacia.rbenv
# rbenv_env: user
# rbenv_ruby_version: 2.1.8
# rbenv_users:
# - map7
# become: yes
tasks:
- include: common/tasks/system.yml
become: yes
- include: common/tasks/email.yml
become: yes
- include: common/tasks/postgresql.yml
become: yes
# Install a system ruby used with backup
- include: common/tasks/ruby.yml
# Also installs emacs, rbenv, ruby thru rbenv, rails
- include: common/tasks/programming.yml
- include: common/tasks/backup.yml
- include: common/tasks/locale.yml
# More office things to be installed
- include: common/tasks/office.yml
- include: common/tasks/lvm.yml
- include: common/tasks/x2go.yml
- include: common/tasks/exwm-config.yml
- include: common/tasks/node-dev-machine.yml
handlers:
- include: common/handlers/handlers.yml