Error saying Extraneous options or arguments when trying to run an ansible playbook

0 votes

Hey, I'm very new to ansible. I tried running a simple ansible playbook using the following command but it failed and gave me an error instead.

ansible playbook auto.yml


Usage: ansible <host-pattern> [options]
Define and run a single task 'playbook' against a set of hostsERROR! Extraneous options or arguments

What am I doing wrong?

Jan 21, 2019 in Ansible by Nisha

2 answers to this question.

0 votes

Hey @Nisha, You are using the wrong command to execute your playbook.

Use the following syntax:

ansible-playbook -i hosts playbookname.yml


ansible-playbook playbook-name.yml
answered Jan 21, 2019 by Sariak
0 votes
ERROR! Extraneous options or arguments
answered May 30, 2019 by anonymous

hey, Sariak's solution did not work?

Related Questions In Ansible

0 votes
0 answers
+1 vote
1 answer
0 votes
1 answer
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
+2 votes
1 answer
0 votes
1 answer
0 votes
1 answer