geerlingguy / ansible-role-certbot

Ansible Role - Certbot (for Let's Encrypt)
https://galaxy.ansible.com/geerlingguy/certbot/
MIT License
794 stars 348 forks source link

Installation via Snap is not working on Debian #151

Closed sestrella closed 3 years ago

sestrella commented 3 years ago

Following certbot.eff instructions for Debian 10 (buster), I'm trying to install certbot via snap, however, I'm getting the following error:

TASK [geerlingguy.certbot : Enable classic snap support.] ************************************************************************************************************************************
fatal: [host]: FAILED! => {"changed": false, "gid": 0, "group": "root", "mode": "0755", "msg": "src file does not exist, use \"force=yes\" if you really want to create the link: /var/lib/snapd/snap", "owner": "root", "path": "/snap", "size": 4096, "src": "/var/lib/snapd/snap", "state": "directory", "uid": 0}

Role version

  - name: geerlingguy.certbot
    version: 4.0.0

Ansible facts:

✗  ansible -m setup host | grep ansible_dis
        "ansible_distribution": "Debian",
        "ansible_distribution_file_parsed": true,
        "ansible_distribution_file_path": "/etc/os-release",
        "ansible_distribution_file_variety": "Debian",
        "ansible_distribution_major_version": "10",
        "ansible_distribution_release": "buster",
        "ansible_distribution_version": "10",
klenwell commented 3 years ago

Hit this same issue in Ubuntu 18. Fix from PR worked for me, too. Thanks!

lmazardo commented 3 years ago

:+1: - Waiting for merge in main branch.

higidi commented 3 years ago

Same here

stale[bot] commented 3 years ago

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

Mahagon commented 3 years ago

This is also an issue on Ubuntu 20.04

the commit 02e1e4e14803044f9146f381c17467bd81167910 works for me too.

stale[bot] commented 3 years ago

This issue is no longer marked for closure.

sestrella commented 3 years ago

Solved by https://github.com/geerlingguy/ansible-role-certbot/pull/152 (merged)