X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=tasks%2Fconfig_WP.yml;fp=tasks%2Fconfig_WP.yml;h=235cdbb8ff95b454434da5dbb47b146df052a10d;hb=e98d8ba105eab6a1a8c65574923be9f00f124b0b;hp=c328bc00ea7f5c87dc690776c854473fc5476b2c;hpb=127e62e0da098421ca5cfa85e73648419c9ea17b;p=lhc%2Fansible.git diff --git a/tasks/config_WP.yml b/tasks/config_WP.yml index c328bc0..235cdbb 100644 --- a/tasks/config_WP.yml +++ b/tasks/config_WP.yml @@ -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: