From 1deead5576bf73a3847e7c2db8bea181ee5cb68a Mon Sep 17 00:00:00 2001 From: zengxc Date: Thu, 25 Feb 2021 17:34:42 +0800 Subject: [PATCH] add nginx default.conf --- roles/magento/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/magento/tasks/main.yml b/roles/magento/tasks/main.yml index 37566ea..319f14d 100644 --- a/roles/magento/tasks/main.yml +++ b/roles/magento/tasks/main.yml @@ -107,9 +107,9 @@ - name: Copy nginx virtual host configure template: src: default.conf.jinja2 - dest: '{{ magento_vhost_dir }}' + dest: '{{magento_vhost_dir}}/{{magento_vhost_src}}' force: yes - when: magento_service is nginx + when: magento_service == "nginx" - name: restart php-fpm service: name=php-fpm state=restarted