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/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/%24%7B%60data:application/%22https:/hacktivis.me/%7Blink%7D?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 }}'