Deployer Tasks: Fix Issue 3

This commit is contained in:
Christer Warén 2024-05-07 15:47:29 +03:00
parent d9b8f5ddb1
commit f8c2b6d4f2

View File

@ -160,8 +160,16 @@
- name: "Deployer - Wordpress - Create Folder" - name: "Deployer - Wordpress - Create Folder"
file: file:
path: "/root/wordpress/data/wp-content" path: "{{ path }}"
state: directory 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: tags:
- wordpress - wordpress
@ -204,7 +212,8 @@
recreate: on recreate: on
network: host network: host
volumes: 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/000-default.conf:/etc/apache2/sites-enabled/000-default.conf"
- "/root/wordpress/conf/ports.conf:/etc/apache2/ports.conf" - "/root/wordpress/conf/ports.conf:/etc/apache2/ports.conf"
env: env: