Found it : I had to add :
owner: false
group: false
Norbert Klamann schrieb am Mittwoch, 11. Januar 2023 um 14:36:55 UTC+1:
> Hello all,
>
> I have the following task
>
> ```
> ---
> - name: Copy static webfiles to document root /var/www/{{ sitename }}
> # become: true
> become_user: www-data
> ansible.posix.synchronize:
> dest: "/var/www/"
> src: var/www/{{ sitename }}
> mode: 0644
> ```
>
>
> ansible-lint gives :
>
> ```
> no-same-owner: Owner should not be kept between different hosts.
> roles/static_website/tasks/main.yml:2
> ```
>
> How can I prevent this ?
>
> ansible-lint 6.2.2 using ansible 2.14.0
>
> Thanks a lot ?
>
> Norbert
>
>
>
>
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/8383a50f-398e-4432-8d8c-af6db91938f7n%40googlegroups.com.