mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-11 18:46:32 +00:00
Fix version_compare to version for ansible 2.9 (#902)
This commit is contained in:
parent
9530dba2c2
commit
c51c5b3c44
1 changed files with 2 additions and 2 deletions
4
ansible/lemmy.yml
vendored
4
ansible/lemmy.yml
vendored
|
@ -33,13 +33,13 @@
|
||||||
apt:
|
apt:
|
||||||
pkg:
|
pkg:
|
||||||
- 'python-certbot-nginx'
|
- '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
|
- name: install certbot-nginx on ubuntu > 20
|
||||||
apt:
|
apt:
|
||||||
pkg:
|
pkg:
|
||||||
- 'python3-certbot-nginx'
|
- '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
|
- name: request initial letsencrypt certificate
|
||||||
command: certbot certonly --nginx --agree-tos -d '{{ domain }}' -m '{{ letsencrypt_contact_email }}'
|
command: certbot certonly --nginx --agree-tos -d '{{ domain }}' -m '{{ letsencrypt_contact_email }}'
|
||||||
|
|
Loading…
Reference in a new issue