...
9:48:03 PM TASK [Gathering Facts] *********************************************************
9:48:05 PM ok: [webserver1]
9:48:05 PM [DEPRECATION WARNING]: Distribution debian 11 on host webserver1 should
9:48:05 PM should use /usr/bin/python3, but is using /usr/bin/python for backward
9:48:05 PM compatibility with prior Ansible releases. A future Ansible release will
9:48:05 PM default to using the discovered platform python for this host. See https://docs
9:48:05 PM .ansible.com/ansible/2.10/reference_appendices/interpreter_discovery.html for
9:48:05 PM more information. This feature will be removed in version 2.12. Deprecation
9:48:05 PM warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
...
From the job logs:
Solution:
docker exec --user root -it semaphore mkdir /etc/ansible
docker exec --user root -it semaphore sh -c 'echo -e "[defaults]\ndeprecation_warnings=False" > /etc/ansible/ansible.cfg'