forked from roots/trellis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
server.yml
42 lines (39 loc) · 1.4 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
33
34
35
36
37
38
39
40
41
42
---
- 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: Install prerequisites
hosts: web:&{{ env }}
gather_facts: false
become: yes
tasks:
- name: Install Python 2.x
raw: which python || sudo apt-get update && sudo apt-get install -qq -y python-simplejson
register: python_check
changed_when: not python_check.stdout | search('/usr/bin/python')
- name: WordPress Server - Install LEMP Stack with PHP 7.1 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] }
- { 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, letsencrypt] }