What does an Ansible task containing command: ls -l do under hosts: localhost?
command: ls -l
hosts: localhost
It defines a variable named ls without running anything.
ls
It runs ls -l on the selected localhost target when the playbook executes.
ls -l
It only displays the YAML file on the controller.
It installs Ansible on every host.