samdoran / ansible-role-gitlab

Ansible role for GitLab CE Omnibus
30 stars 21 forks source link

"'check_mode' is not a valid attribute for a Task" when running with Ansible 2.2 #12

Closed flokru closed 7 years ago

flokru commented 7 years ago

Running my playbook involving the samdoran.gitlab role with Ansible 2.2, I get the following error:

ERROR! 'check_mode' is not a valid attribute for a Task

The error appears to have been in '/usr/local/etc/ansible/roles/samdoran.gitlab/tasks/main.yml': line 8, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

- name: Get current GitLab version
  ^ here

Interestingly, check_mode: no which is used in this task was added in Ansible 2.2 (which I am using)…

What info do you need in order to reproduce this problem?

I am running samdoran.gitlab in version 3.1.2, downgrading to 3.1 solved the issue for me.

flokru commented 7 years ago

Nevermind, I found the problem to be with my ansible installation. Somehow, I got the Homebrew package manager to install Ansible from repo HEAD months ago (and did not remember). Unfortunately, ansible --version does not tell this but acts as a regularly released version. I must have used a version inbetween releases…