diff options
author | Paul Tötterman <ptman@users.noreply.github.com> | 2020-07-04 14:46:08 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-04 11:46:08 +0000 |
commit | c51c5b3c445fb2457b37c60c0736be3fdecbc15b (patch) | |
tree | 6f2c26ac26103b359c64b38edeaec9f1f45c6678 /ansible | |
parent | 9530dba2c2cf6d9639ab12f7337013ba2389988c (diff) |
Fix version_compare to version for ansible 2.9 (#902)
Diffstat (limited to 'ansible')
-rw-r--r-- | ansible/lemmy.yml | 4 |
1 files changed, 2 insertions, 2 deletions
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 }}' |