jinja2 template

105 views
Skip to first unread message

Sakshi Jain

unread,
Jul 31, 2021, 2:43:41 PM7/31/21
to Ansible Development
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

jayanth reddy

unread,
Aug 2, 2021, 1:16:58 AM8/2/21
to Sakshi Jain, Ansible Development
Command: ansible-playbook playbook.yml --syntax-check

--
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-deve...@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.
Reply all
Reply to author
Forward
0 new messages