-
Notifications
You must be signed in to change notification settings - Fork 1
/
playbook.yaml
59 lines (56 loc) · 1.38 KB
/
playbook.yaml
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
---
- hosts: master
tasks:
- apt: name=openntpd state=latest
- service: name=openntpd state=started enabled=yes
- hosts: www
tasks:
- apt: name={{item}} state=latest
with_items:
- apache2
- build-essential
- curl
- pwgen
- ruby-sass
- file: path=/etc/apache2/sites-available state=directory
- copy: src=files/modules.perl6.org/site.conf dest=/etc/apache2/sites-available/modules.perl6.org-mojo.conf owner=root mode=644
notify: restart apache2
# - command: a2ensite modules.perl6.org.org-mojo.conf
# notify: restart apache2
- service: name=apache2 state=started enabled=yes
- apache2_module: state=present name={{ item }}
notify:
- restart apache2
with_items:
- proxy
- proxy_http
- include
- negotiation
- autoindex
- alias
handlers:
- name: restart apache2
service: name=apache2 state=restarted
- hosts: hack
tasks:
- apt: name={{ item }} state=present update_cache=yes cache_valid_time=3600
name: Install debian packages
with_items:
- build-essential
- cabal-install
- curl
- fail2ban
- git-man
- git
- git-svn
- gnupg2
- irssi
- nodejs
- python-pygments
- rsync
- screen
- strace
- sudo
- tmux
- unzip
- wget