This is normal in Debian and its derivatives.
Ansible is using /bin/sh that is symlink to dash.
The dash shell has to mode like most other shell, interactive and
non-interactive and the /etc/profile is only read in interactive shell
mode.
But since Ansible is not logging in, it just run a command it uses
non-interactive that file is not read.
For more information check man dash search for Invocation.
You need to use /etc/environment but remember that this file doesn't
support variable expansion.
--
Kai Stian Olstad