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 Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/4b9bf0b7-8313-4f77-a763-5e5284794ab0n%40googlegroups.com.
