diff --git a/defaults/main.yml b/defaults/main.yml index 230eccb..88b2f7e 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -37,3 +37,6 @@ certbot_keep_updated: true # Where to put Certbot when installing from source. certbot_dir: /opt/certbot + +# Controls if classic snap support will be enabled when certbot_install_method is 'snap' +certbot_snap_classic_support: true \ No newline at end of file diff --git a/tasks/install-with-snap.yml b/tasks/install-with-snap.yml index 0651e71..62187cb 100644 --- a/tasks/install-with-snap.yml +++ b/tasks/install-with-snap.yml @@ -15,6 +15,7 @@ src: /var/lib/snapd/snap dest: /snap state: link + when: certbot_snap_classic_support - name: Update snap after install. shell: snap install core; snap refresh core