forked from roots/trellis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
server.yml
32 lines (30 loc) · 1.1 KB
/
server.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
---
- include: variable-check.yml
vars:
playbook: server.yml
- name: Determine Remote User
hosts: web:&{{ env }}
gather_facts: false
roles:
- { role: remote-user, tags: [remote-user, always] }
- name: WordPress Server - Install LEMP Stack with PHP 7.0 and MariaDB MySQL
hosts: web:&{{ env }}
become: yes
roles:
- { role: common, tags: [common] }
- { role: swapfile, swapfile_size: 1GB, tags: [swapfile] }
- { role: fail2ban, tags: [fail2ban] }
- { role: ferm, tags: [ferm] }
- { role: ntp, tags: [ntp] }
- { role: users, tags: [users] }
- { role: sshd, tags: [sshd] }
- { role: mariadb, tags: [mariadb], when: not mysql_remote_database }
- { role: ssmtp, tags: [ssmtp mail] }
- { role: php, tags: [php] }
- { role: memcached, tags: [memcached] }
- { role: nginx, tags: [nginx] }
- { role: logrotate, tags: [logrotate] }
- { role: composer, tags: [composer] }
- { role: wp-cli, tags: [wp-cli] }
- { role: letsencrypt, tags: [letsencrypt], when: letsencrypt_enabled }
- { role: wordpress-setup, tags: [wordpress, wordpress-setup] }