WP-config.php permissions

This commit is contained in:
David Petric 2023-04-07 18:33:50 +02:00
parent 43f18f4e73
commit 04a3a1c37f

View File

@ -9,3 +9,13 @@
src: files/wp-config.php.j2 src: files/wp-config.php.j2
dest: /var/www/{{ vhost_name }}/wp-config.php dest: /var/www/{{ vhost_name }}/wp-config.php
when: not project_config.stat.exists when: not project_config.stat.exists
- name: Chown
become: true
shell: chown -R www-data:www-data /var/www/{{ vhost_name }}/wp-config.php
when: not project_config.stat.exists
- name: Chmod
become: true
shell: chmod -R 755 /var/www/{{ vhost_name }}/wp-config.php
when: not project_config.stat.exists