-
Notifications
You must be signed in to change notification settings - Fork 0
/
server-setup-playbook.yml
75 lines (65 loc) · 1.37 KB
/
server-setup-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
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
68
69
70
71
72
73
74
75
---
- hosts: giantbomb
tasks:
- name: Install Base Required Packages
apt:
name: "{{ item }}"
state: installed
update_cache: yes
become: yes
with_items:
- apt-transport-https
- lsb-release
- ca-certificates
- ant
- unzip
- zip
- mysql-server
- python-mysqldb
- redis-server
- name: Add Repo for PHP7.1
apt_repository:
repo: ppa:ondrej/php
state: present
become: yes
- name: Install Laravel Required Packages
apt:
name: "{{ item }}"
state: installed
update_cache: yes
become: yes
with_items:
- php7.1
- php7.1-xml
- php7.1-mysql
- php7.1-mbstring
- php7.1-curl
- name: Install Composer
shell: curl -sS https://getcomposer.org/installer | php
become: yes
- name: Move into User Bin
shell: mv composer.phar /usr/bin/composer
become: yes
- name: Create giantbomb db
mysql_db:
state: present
name: giantbomb
become: yes
- name: Create default db user
mysql_user:
name: gb
password: testing
priv: '*.*:ALL'
state: present
become: yes
- name: Change mnt folder permissions
file:
path: /mnt
mode: 0777
become: yes
- name: Create mnt directory
file:
path: /mnt/external
state: directory
mode: 0777
become: yes