From: Paul Tötterman Date: Sat, 4 Jul 2020 11:46:08 +0000 (+0300) Subject: Fix version_compare to version for ansible 2.9 (#902) X-Git-Url: http://these/git/%22https:/github.com/LemmyNet/lemmy/issues/%22?a=commitdiff_plain;h=c51c5b3c445fb2457b37c60c0736be3fdecbc15b;p=lemmy.git Fix version_compare to version for ansible 2.9 (#902) --- diff --git a/ansible/lemmy.yml b/ansible/lemmy.yml index a73f7293..3520c404 100644 --- a/ansible/lemmy.yml +++ b/ansible/lemmy.yml @@ -33,13 +33,13 @@ apt: pkg: - 'python-certbot-nginx' - when: ansible_distribution == 'Ubuntu' and ansible_distribution_version|version_compare('20.04', '<') + when: ansible_distribution == 'Ubuntu' and ansible_distribution_version is version('20.04', '<') - name: install certbot-nginx on ubuntu > 20 apt: pkg: - 'python3-certbot-nginx' - when: ansible_distribution == 'Ubuntu' and ansible_distribution_version|version_compare('20.04', '>=') + when: ansible_distribution == 'Ubuntu' and ansible_distribution_version is version('20.04', '>=') - name: request initial letsencrypt certificate command: certbot certonly --nginx --agree-tos -d '{{ domain }}' -m '{{ letsencrypt_contact_email }}'