silpion / ansible-tomcat

Manage installation of Tomcat
Apache License 2.0
64 stars 57 forks source link

Detect tomcat version upgrade error #32

Open dracic opened 7 years ago

dracic commented 7 years ago

I'm getting error when using default setup:

TASK [ansible-tomcat : Detect version upgrade] ***** fatal: [ansibletomcattest]: FAILED! => {"failed": true, "msg": "The conditional check 'ansible_local.tomcat.general.version is defined' failed. The error was: error while evaluating conditional (ansible_local.tomcat.general.version is defined): 'dict object' has no attribute 'general'\n\nThe error appears to have been in '/home/dracic/git/ansible-tomcat/tasks/main.yml': line 35, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Detect version upgrade\n ^ here\n"}

Can anyone help about this error message?

dracic commented 7 years ago

I'm using Fedora 26:

ansible 2.3.0.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides python version = 2.7.13 (default, May 10 2017, 20:04:28) [GCC 6.3.1 20161221 (Red Hat 6.3.1-1)]

aelkz commented 7 years ago

I have to comment this step in this task.