Finetuning
This commit is contained in:
@ -10,7 +10,7 @@
|
||||
state: directory
|
||||
mode: '0755'
|
||||
when: not project_dir.stat.exists
|
||||
|
||||
|
||||
- name: Download latest WP
|
||||
get_url:
|
||||
url: https://wordpress.org/latest.zip
|
||||
@ -48,12 +48,12 @@
|
||||
state: absent
|
||||
when: not project_dir.stat.exists
|
||||
|
||||
- name: Chown
|
||||
- name: Files permission
|
||||
become: true
|
||||
shell: chown -R www-data:www-data /var/www/{{ vhost_name }}
|
||||
shell: "/usr/bin/find /var/www/{{ vhost_name }}/ -type f -exec chmod 640 {} \\;"
|
||||
when: not project_dir.stat.exists
|
||||
|
||||
- name: Chmod
|
||||
- name: Directory permissions
|
||||
become: true
|
||||
shell: chmod -R 755 /var/www/{{ vhost_name }}
|
||||
shell: "/usr/bin/find /var/www/{{ vhost_name }}/ -type d -exec chmod 750 {} \\;"
|
||||
when: not project_dir.stat.exists
|
||||
|
Reference in New Issue
Block a user