Copy module task

thor@jump_host ~/ansible$ ansible all -i inventory -m command -a “ls -l /opt/security/index.html”
stapp02 | CHANGED | rc=0 >>
-rw-r–r-- 1 root root 35 Aug 3 12:24 /opt/security/index.html
stapp03 | CHANGED | rc=0 >>
-rw-r–r-- 1 root root 35 Aug 3 12:24 /opt/security/index.html
stapp01 | CHANGED | rc=0 >>
-rw-r–r-- 1 root root 35 Aug 3 12:24 /opt/security/index.html

Task Status - Failed
  • We tried to run ‘/home/thor/ansible/playbook.yml’ on Jump Server but it failed because of incorrect inventory or playbook

hor@jump_host ~/ansible$ cat inventory
stapp01 ansible_host=172.16.238.10 ansible_ssh_user=tony ansible_ssh_pass=Ir0nM@n
stapp02 ansible_host=172.16.238.11 ansible_ssh_user=steve ansible_ssh_pass=Am3ric@
stapp03 ansible_host=172.16.238.12 ansible_ssh_user=banner ansible_ssh_pass=BigGr33n

Can anyone please tell what is wrong here