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 in Ansible by Neel
184 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 by Takeshi

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

Related Questions In Ansible

0 votes
2 answers
+13 votes
2 answers
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer