diff --git a/roles/configure-wordpress/tasks/main.yml b/roles/configure-wordpress/tasks/main.yml index a6ec071..3ad2c62 100644 --- a/roles/configure-wordpress/tasks/main.yml +++ b/roles/configure-wordpress/tasks/main.yml @@ -9,3 +9,13 @@ src: files/wp-config.php.j2 dest: /var/www/{{ vhost_name }}/wp-config.php 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 \ No newline at end of file