This commit is contained in:
Dessalines 2020-07-04 07:59:54 -04:00
commit fa0b0b68ca

4
ansible/lemmy.yml vendored
View File

@ -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 }}'