Solution to synchronize from vps web server to local web server

hello,
if you need help about this, see my task dor ansible playbook to import your files web server project to you local server host :

- hosts: servers
  become: yes
  vars:
    symfony_root: /var/www/monSite/
    local_project_root: "/home/alexandre/Documents/monSite"

  tasks:
    - debug:
        msg: "Ansible version: {{ ansible_version.full }}"

    - name: Synchronize files from server to local
      ansible.posix.synchronize:
        src: "{{ symfony_root }}"
        dest: "{{ local_project_root }}"
        mode: pull
        compress: true
        delete: no
        rsync_opts:
          - "--exclude=.git"
          - "--exclude=*.sh"
          - "--exclude=/vendor"
          - "--exclude=var/cache/*"
          - "--exclude=var/log/*"
          - "--exclude=.env.local"
          - "-v"
      delegate_to: localhost

with pull instruction in the properties of the task, synchronize
Regards