Error saying Package not a legal parameter in an Ansible task or a handler - Ansible

+1 vote

I'm trying to run this command:

ansible-playbook openshift-ansible/playbooks/byo/config.yml

and I'm getting this error:

ERROR: fail is not a legal parameter in an Ansible task or handler

How do I get rid of it?

Jan 8, 2019 in Ansible by Neel
3,199 views

1 answer to this question.

+2 votes
Best answer

This has been happening to a lot of people, it's a version bug. Upgrade your ansible version from 1.5.4 to 2.3.0

To upgrade your version, use the following commands:

$ sudo apt-get install software-properties-common
$ sudo apt-add-repository ppa:ansible/ansible
$ sudo apt-get update
$ sudo apt-get install ansible
answered Jan 8, 2019 by Takeshi

selected May 30, 2019 by Kalgi
It worked for me. Thanks!!!
Glad to help :)

Related Questions In Ansible

0 votes
1 answer
0 votes
1 answer
0 votes
2 answers
+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 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,036 views
+2 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Error saying "ERROR: ec2_vpc_subnet is not a legal parameter of an Ansible Play"

ec2_vpc_subnet is support from Ansible version 2.0 and ...READ MORE

answered Feb 8, 2019 in Ansible by Dee
1,107 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP