Skip to content

Commit

Permalink
Fixed ansible distribution check template error
Browse files Browse the repository at this point in the history
This fixes both:
- [#42](#43): using ansible_distribution_major_version instead of ansible_distribution_version
- [#62](#62): using is version instead of version_compare
  • Loading branch information
jadbaz authored Nov 18, 2019
1 parent 843b0ad commit 2514cd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
permanent: yes
immediate: yes
state: enabled
when: ansible_distribution_version|version_compare(7, '=') and wildfly_manage_firewall
when: ansible_distribution_major_version is version('7', '=') and wildfly_manage_firewall

- meta: flush_handlers

Expand Down

0 comments on commit 2514cd0

Please sign in to comment.