Fix wordpress detection logic
This commit is contained in:
@ -4,6 +4,13 @@
|
||||
path: /var/www/{{ vhost_name }}
|
||||
register: project_dir
|
||||
|
||||
- name: Create wwwroot
|
||||
file:
|
||||
path: /var/www/{{ vhost_name }}
|
||||
state: directory
|
||||
mode: '0755'
|
||||
when: not project_dir.stat.exists
|
||||
|
||||
- name: Download latest WP
|
||||
get_url:
|
||||
url: https://wordpress.org/latest.zip
|
||||
|
Reference in New Issue
Block a user