forked from ubergeek42/domserver-ami
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlocal.yml
More file actions
33 lines (28 loc) · 805 Bytes
/
Copy pathlocal.yml
File metadata and controls
33 lines (28 loc) · 805 Bytes
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
---
- hosts: localhost
user: root
pre_tasks:
- name: be sure apt cache is updated
apt: update_cache=yes
tasks:
- name: install dependencies
apt: pkg={{item}} state=present
with_items:
- apache2
- libapache2-mod-php5
- php5-mysql
- php5-gd
- awscli
- mysql-client-core-5.6
- zip
- unzip
- name: disable default apache2 site
file: state=absent path=/etc/apache2/sites-enabled/000-default.conf
- name: copy deployment script
copy: src=files/deploy_domserver.sh dest=/root/deploy_domserver.sh mode=0755
- name: do something with ufw
ufw: logging=off
tags: ['domjudge-server', 'ufw']
handlers:
- name: reload apache2
command: /usr/sbin/service apache2 graceful