Finetuning

This commit is contained in:
David Petric
2023-04-07 18:45:34 +02:00
parent 04a3a1c37f
commit 4d5c5cbf58
3 changed files with 5 additions and 125 deletions

View File

@ -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