Use version filter instead of version_compare

This filter was changed to 'version' in ansible 2.5 [1].

[1] https://docs.ansible.com/ansible/2.8/user_guide/playbooks_tests.html#version-comparison

Change-Id: I12bf7ac0b9bf7f2ae6eff4feccc2a1f8a4dc3d82
This commit is contained in:
Dmitriy Rabotyagov 2019-09-09 20:02:25 +03:00
parent 81b88e2416
commit fcd6eb32b6
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ lxc_net_dhcp_range: 10.100.100.2,10.100.100.99
lxc_net_bridge: lxcbr0
lxc_kernel_options:
- { key: 'fs.inotify.max_user_instances', value: 1024 }
lxc_config_key_apparmor: "{{ lookup('pipe', 'lxc-info --version || echo 2.0.0') is version_compare('3.0.0', 'lt') | ternary('aa_profile', 'apparmor.profile') }}"
lxc_config_key_apparmor: "{{ lookup('pipe', 'lxc-info --version || echo 2.0.0') is version('3.0.0', 'lt') | ternary('aa_profile', 'apparmor.profile') }}"
# Galera Settings
galera_address: "{{ test_galera_host }}"