forked from secfigo/ansible-multi-wordpress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsite.yml
34 lines (33 loc) · 1.09 KB
/
site.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
---
- name: Install Wordpress Server
hosts: webservers
remote_user: root
gather_facts: no # don't gather facts because /usr/bin/python isn't set
pre_tasks:
- name: apt-get update
raw: apt-get update -qq
- name: install python 2.7 and aptitude
raw: apt-get install -qq python2.7 aptitude
- name: set python 2.7 as default
raw: update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1
roles:
- common
- unattended-upgrades
- postfix
- mysql
- php
- vhosts
- certbot
- nginx
- memcached
- wordpress
# Caution: This should only be applied if you want to update multiple wordpress
# installations and want to do it via the WP Admin instead of SFTP.
#
# Afterwards you should remove the "wordpress-update" role and run the playbook again
# to set the correct file and directory rights.
#
# This role sets all directories to www-data:www-data so wordpress can run it's update
# via the admin backend. This is a security risk and should only be used temporarily!
#
# - wordpress-update