Copy module task

[email protected]_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

[email protected]_host ~/ansible$ cat inventory
stapp01 ansible_host=172.16.238.10 ansible_ssh_user=tony [email protected]
stapp02 ansible_host=172.16.238.11 ansible_ssh_user=steve [email protected]
stapp03 ansible_host=172.16.238.12 ansible_ssh_user=banner ansible_ssh_pass=BigGr33n

Can anyone please tell what is wrong here