|
@@ -1,6 +1,6 @@
|
1
|
1
|
---
|
2
|
2
|
# Defines tasks applicable across all machines in the infrastructure.
|
3
|
|
-- name: Set up closest mirror autoselect (ubuntu-only)
|
|
3
|
+- name: Set up closest mirror autoselect (Ubuntu-only)
|
4
|
4
|
template: src=apt_sources.list.j2 dest=/etc/apt/sources.list
|
5
|
5
|
when: ansible_distribution == 'Ubuntu'
|
6
|
6
|
tags:
|
|
@@ -28,14 +28,13 @@
|
28
|
28
|
- htop
|
29
|
29
|
- iftop
|
30
|
30
|
- iotop
|
|
31
|
+ - molly-guard
|
31
|
32
|
- mosh
|
32
|
33
|
- python-software-properties
|
33
|
34
|
- ruby
|
34
|
35
|
- screen
|
35
|
36
|
- sudo
|
36
|
|
- - update-notifier-common
|
37
|
37
|
- unattended-upgrades
|
38
|
|
- - molly-guard
|
39
|
38
|
- vim
|
40
|
39
|
- zsh
|
41
|
40
|
tags:
|
|
@@ -49,33 +48,10 @@
|
49
|
48
|
|
50
|
49
|
- name: Reconfigure tzdata
|
51
|
50
|
action: command dpkg-reconfigure -f noninteractive tzdata
|
52
|
|
- when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
|
53
|
51
|
|
54
|
52
|
- name: Apticron email configuration
|
55
|
53
|
template: src=apticron.conf.j2 dest=/etc/apticron/apticron.conf
|
56
|
54
|
|
57
|
|
-- name: Disable default Apache site
|
58
|
|
- command: a2dissite 000-default removes=/etc/apache2/sites-enabled/000-default
|
59
|
|
- notify: restart apache
|
60
|
|
-
|
61
|
|
-- name: Enable Apache headers module
|
62
|
|
- command: a2enmod headers creates=/etc/apache2/mods-enabled/headers.load
|
63
|
|
- notify: restart apache
|
64
|
|
-
|
65
|
|
-- name: Set ServerName for Apache
|
66
|
|
- template: src=fqdn.j2 dest=/etc/apache2/conf.d/fqdn
|
67
|
|
- notify: restart apache
|
68
|
|
- when: ansible_distribution_release != 'trusty'
|
69
|
|
-
|
70
|
|
-- name: Create ServerName configuration file for Apache for Ubuntu Trusty
|
71
|
|
- template: src=fqdn.j2 dest=/etc/apache2/conf-available/fqdn.conf
|
72
|
|
- when: ansible_distribution_release == 'trusty'
|
73
|
|
-
|
74
|
|
-- name: Set ServerName for Apache for Ubuntu Trusty
|
75
|
|
- command: a2enconf fqdn creates=/etc/apache2/conf-enabled/fqdn.conf
|
76
|
|
- notify: restart apache
|
77
|
|
- when: ansible_distribution_release == 'trusty'
|
78
|
|
-
|
79
|
55
|
- name: Create decrypted directory (even if encfs isn't used)
|
80
|
56
|
file: state=directory path=/decrypted
|
81
|
57
|
|
|
@@ -84,11 +60,9 @@
|
84
|
60
|
|
85
|
61
|
- include: encfs.yml tags=encfs
|
86
|
62
|
- include: users.yml tags=users
|
|
63
|
+- include: apache.yml tags=apache
|
87
|
64
|
- include: ssl.yml tags=ssl
|
88
|
65
|
- include: ufw.yml tags=ufw
|
89
|
66
|
- include: security.yml tags=security
|
90
|
67
|
- include: ntp.yml tags=ntp
|
91
|
68
|
- include: google_auth.yml tags=google_auth
|
92
|
|
- when: ansible_distribution_release != 'trusty'
|
93
|
|
-- include: google_auth_mod.yml tags=google_auth
|
94
|
|
- when: ansible_distribution_release == 'trusty'
|