mirror of
https://github.com/MatteZ02/infra.git
synced 2024-11-25 03:51:32 +00:00
Deployer Tasks: Fix Issue 3
This commit is contained in:
parent
d9b8f5ddb1
commit
f8c2b6d4f2
@ -160,8 +160,16 @@
|
||||
|
||||
- name: "Deployer - Wordpress - Create Folder"
|
||||
file:
|
||||
path: "/root/wordpress/data/wp-content"
|
||||
path: "{{ path }}"
|
||||
state: directory
|
||||
vars:
|
||||
paths:
|
||||
- /root/wordpress/data/wp-content/plugins
|
||||
- /root/wordpress/data/wp-content/uploads
|
||||
loop: "{{ paths }}"
|
||||
loop_control:
|
||||
label: "{{ path }}"
|
||||
loop_var: "path"
|
||||
tags:
|
||||
- wordpress
|
||||
|
||||
@ -204,7 +212,8 @@
|
||||
recreate: on
|
||||
network: host
|
||||
volumes:
|
||||
- "/root/wordpress/data/wp-content/:/var/www/html/wp-content/"
|
||||
- "/root/wordpress/data/wp-content/plugins:/var/www/html/wp-content/plugins"
|
||||
- "/root/wordpress/data/wp-content/uploads:/var/www/html/wp-content/uploads"
|
||||
- "/root/wordpress/conf/000-default.conf:/etc/apache2/sites-enabled/000-default.conf"
|
||||
- "/root/wordpress/conf/ports.conf:/etc/apache2/ports.conf"
|
||||
env:
|
||||
|
Loading…
Reference in New Issue
Block a user