Fixes #8: Debian 9 test not working for version check.

This commit is contained in:
Jeff Geerling 2019-05-04 21:35:20 -05:00
parent 31db496b33
commit bf8a54b24c
1 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@
{{ ansible_distribution_release }}-backports main'
state: present
filename: "{{ ansible_distribution_release }}_backports"
when: ansible_distribution_version < 9
when: ansible_distribution_version | int < 9
- name: Update apt cache.
apt: update_cache=true cache_valid_time=86400
@ -14,7 +14,7 @@
- name: Set the default_release option for older Debian versions.
set_fact:
ansible_default_release: "{{ ansible_distribution_release }}-backports"
when: ansible_distribution_version < 9
when: ansible_distribution_version | int < 9
- name: Install Ansible.
apt: