Ansible using root user to ping

to add to what @felixfontein is saying, you are using ad-hoc commands here (not an Ansible Playbook), so it is using your “current user” which you can see from the screenshot is root and has the #. You can set an ansible_user in your inventory or use the -u flag on the command line to set the user

4 Likes