Summary
According to the following references:
the usage of data_files is deprecated and does not work with wheels.
Therefore I think the best is to not include it in the main example on the declarative configuration docs (since it may give the wrong impression/idea to users).
Instead the best should be directing them to the datafiles support docs
OS / Environment
No response
Additional Information
The example is particularly controversial, since it includes files to be written to the /etc folder.

Code of Conduct
Summary
According to the following references:
the usage of
data_filesis deprecated and does not work with wheels.Therefore I think the best is to not include it in the main example on the declarative configuration docs (since it may give the wrong impression/idea to users).
Instead the best should be directing them to the datafiles support docs
OS / Environment
No response
Additional Information
The example is particularly controversial, since it includes files to be written to the
/etcfolder.Code of Conduct