diff --git a/vars/Debian.yml b/vars/Debian.yml index b8f468b3..37863322 100644 --- a/vars/Debian.yml +++ b/vars/Debian.yml @@ -2,8 +2,8 @@ --- bind_default_python_version: '3' bind_packages: - - "{{ ( bind_python_version == '3' ) | ternary( 'python3-netaddr', 'python-netaddr' ) }}" - - "{{ ( bind_python_version == '3' ) | ternary( 'python3-dnspython', 'python-dnspython' ) }}" + - "{{ ( bind_python_version | string == '3' ) | ternary( 'python3-netaddr', 'python-netaddr' ) }}" + - "{{ ( bind_python_version | string == '3' ) | ternary( 'python3-dnspython', 'python-dnspython' ) }}" - bind9 - bind9utils diff --git a/vars/RedHat.yml b/vars/RedHat.yml index 9c313eac..67348866 100644 --- a/vars/RedHat.yml +++ b/vars/RedHat.yml @@ -2,8 +2,8 @@ --- bind_default_python_version: "{{ ( ansible_distribution_major_version == '8' ) | ternary( '3', '2' ) }}" bind_packages: - - "{{ ( bind_python_version == '3' ) | ternary( 'python3-netaddr', 'python-netaddr' ) }}" - - "{{ ( bind_python_version == '3' ) | ternary( 'python3-dns', 'python-dns' ) }}" + - "{{ ( bind_python_version | string == '3' ) | ternary( 'python3-netaddr', 'python-netaddr' ) }}" + - "{{ ( bind_python_version | string == '3' ) | ternary( 'python3-dns', 'python-dns' ) }}" - bind - bind-utils