Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AnsibleFilterError: Version comparison: LooseVersion instance has no attribute 'version' #11

Closed
NanoPish opened this issue Apr 9, 2020 · 4 comments

Comments

@NanoPish
Copy link

NanoPish commented Apr 9, 2020

The task [auditd : setup rsyslog to send audisp logs to a specific target] is failing with AnsibleFilterError: Version comparison: LooseVersion instance has no attribute 'version'

I have no idea what it means and I'm wondering why would it fail there as it is just a template call...

host:

python2.7.17
ansible 2.5.1

host-target:
debian 10

If you have an idea on what to look for to understand the error I would be very grateful.
ansible-playbook -vvv doesn't give interesting informaton just SSH EXEC some tmp file where it uploaded the script to be ran

@NanoPish
Copy link
Author

If you can tell me your exact ansible and python version of host and target it would help also

@NanoPish
Copy link
Author

Caused by output of rsyslogd --version different on debian system and error while parsing with awk

Fixed by PR #12

@NanoPish NanoPish changed the title nsibleFilterError: Version comparison: LooseVersion instance has no attribute 'version' AnsibleFilterError: Version comparison: LooseVersion instance has no attribute 'version' Apr 10, 2020
@NanoPish
Copy link
Author

it is caused by version and not os it seems

@juju4
Copy link
Owner

juju4 commented Jun 7, 2020

normally fixed by ee12134

@juju4 juju4 closed this as completed Jun 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants