Please help to resolve this error ansible-playbook: error: unrecognized arguments: --snyntax-check [ec2-user@ansible-engine jinja2]$ ansible-playbook lab27.yaml
PLAY [install vsftpd] ****************************************************************************************************************************************************** TASK [Gathering Facts] ***************************************************************************************************************************************************** [WARNING]: Platform linux on host node2 is using the discovered Python interpreter at /usr/bin/python, but future installation of another Python interpreter could change this. See https://docs.ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html for more information. ok: [node2] TASK [get basic vsftpd operational] **************************************************************************************************************************************** fatal: [node2]: FAILED! => {"changed": false, "changes": {"installed": ["vsftpd"]}, "msg": "You need to be root to perform this command.\n", "rc": 1, "results": ["Loaded plugins: extras_suggestions, langpacks, priorities, update-motd\n"]} PLAY RECAP ***************************************************************************************************************************************************************** node2 : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0 -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-devel/eaa9359e-84a8-42df-a275-1b5a6684f820n%40googlegroups.com.