-
Notifications
You must be signed in to change notification settings - Fork 3
/
playbook.yml
45 lines (42 loc) · 1.75 KB
/
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
- name: AbuseIO base installation
gather_facts: yes
hosts: localhost
become: yes
become_method: su
vars_files:
- vars/abuseio.yml
- vars/apache.yml
- vars/mysql.yml
- vars/php.yml
- vars/php-pecl.yml
- vars/composer.yml
- vars/phpmyadmin.yml
- vars/certbot.yml
- vars/pdns-recursor.yml
- vars/postfix.yml
pre_tasks:
- name: install ansible required packages, like python
raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal)
- name: install ansible required packages, like python-netaddr
raw: python -c "import netaddr" || (apt -y update && apt install -y python-netaddr)
- name: install ansible required packages, like python-dnspython
raw: python -c "import dns.zone" || (apt -y update && apt install -y python-dnspython)
- name: run preflight checks
import_tasks: tests/preflight.yml
roles:
- { role: firewall, tags: 'firewall' }
- { role: certbot, tags: 'certbot' }
- { role: apache, tags: 'apache' }
- { role: mysql, tags: 'mysql' }
- { role: php, tags: 'php' }
- { role: php-mysql, tags: 'php-mysql' }
- { role: composer, tags: 'composer' }
- { role: php-mbstring-patch, tags: 'php-mbstring-patch' }
- { role: php-pecl, tags: 'php-pecl' }
- { role: php-mailparse, tags: 'php-mailparse' }
- { role: phpmyadmin, tags: 'phpmyadmin' }
- { role: abuseio, tags: 'abuseio' }
- { role: postfix, tags: 'postfix' }
- { role: git, tags: 'git' }
- { role: pdns-recursor, tags: 'pdns-recursor' }
- { role: lockdown, tags: 'lockdown' }