Introduce certbot_snap_classic_support to be able to disable classic snap support, leads to problems with Ubuntu 20.04

This commit is contained in:
Tobias Richter 2021-04-09 18:07:23 +02:00
parent fdba1c4352
commit 923812b3b0
2 changed files with 4 additions and 0 deletions

View File

@ -37,3 +37,6 @@ certbot_keep_updated: true
# Where to put Certbot when installing from source. # Where to put Certbot when installing from source.
certbot_dir: /opt/certbot certbot_dir: /opt/certbot
# Controls if classic snap support will be enabled when certbot_install_method is 'snap'
certbot_snap_classic_support: true

View File

@ -15,6 +15,7 @@
src: /var/lib/snapd/snap src: /var/lib/snapd/snap
dest: /snap dest: /snap
state: link state: link
when: certbot_snap_classic_support
- name: Update snap after install. - name: Update snap after install.
shell: snap install core; snap refresh core shell: snap install core; snap refresh core