correction syntaxe
[lhc/ansible.git] / tasks / config_WP.yml
index c328bc0..235cdbb 100644 (file)
@@ -1,12 +1,12 @@
 
-- name: Create new app common folder from old version one
-  become_user: "site_{{ SIGLE }}_{{ SITE }}"
-  become: true
+- name: Copie des fichiers sources WP dans le home du nouveau site
   ansible.builtin.copy:
-    src: "/home/sites/data/wordpress"
+    src: "/home/sites/data/wordpress/"
     dest: "/home/sites/data/{{ TLD }}/{{ DOMAIN }}/{{ SITE }}/"
     remote_src: true # because the copy is from remote host to remote host
     mode: '754' # or 'u=rwx,g=rx,o=r'
+    owner: "php_{{ SIGLE }}_{{ SITE }}"
+    group: "site_{{ SIGLE }}_{{ SITE }}"
 
 - name: Créer les fichiers spécifiques wp
   ansible.builtin.template: