geerlingguy / ansible-role-certbot

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

Missing certbot-auto #204

Open shunkica opened 6 months ago

shunkica commented 6 months ago

I am trying to use this role on a Rocky Linux 8 system but the following error is thrown:

TASK [geerlingguy.certbot : Ensure certbot-auto is executable.] ******************************************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "file (/opt/certbot/certbot-auto) is absent, cannot continue", "path": "/opt/certbot/certbot-auto", "state": "absent"}

These files are present in /opt/certbot:

$ ls /opt/certbot/
acme            certbot-ci                  certbot-dns-dnsimple     certbot-dns-linode  certbot-dns-rfc2136      CHANGELOG.md             letstest          pytest.ini   tests
AUTHORS.md      certbot-compatibility-test  certbot-dns-dnsmadeeasy  certbot-dns-luadns  certbot-dns-route53      CODE_OF_CONDUCT.md       LICENSE.txt       README.rst   tools
certbot         certbot-dns-cloudflare      certbot-dns-gehirn       certbot-dns-nsone   certbot-dns-sakuracloud  CONTRIBUTING.md          linter_plugin.py  SECURITY.md  tox.ini
certbot-apache  certbot-dns-digitalocean    certbot-dns-google       certbot-dns-ovh     certbot-nginx            letsencrypt-auto-source  mypy.ini          snap         windows-installer

certbot-auto has been removed from the certbot repo

Also it is unclear to me why it even tries to install from source since my ansible_os_family is 'RedHat'

onknows commented 6 months ago

I am trying to use this role on a Rocky Linux 8 system but the following error is thrown:

TASK [geerlingguy.certbot : Ensure certbot-auto is executable.] ******************************************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "file (/opt/certbot/certbot-auto) is absent, cannot continue", "path": "/opt/certbot/certbot-auto", "state": "absent"}

These files are present in /opt/certbot:

$ ls /opt/certbot/
acme            certbot-ci                  certbot-dns-dnsimple     certbot-dns-linode  certbot-dns-rfc2136      CHANGELOG.md             letstest          pytest.ini   tests
AUTHORS.md      certbot-compatibility-test  certbot-dns-dnsmadeeasy  certbot-dns-luadns  certbot-dns-route53      CODE_OF_CONDUCT.md       LICENSE.txt       README.rst   tools
certbot         certbot-dns-cloudflare      certbot-dns-gehirn       certbot-dns-nsone   certbot-dns-sakuracloud  CONTRIBUTING.md          linter_plugin.py  SECURITY.md  tox.ini
certbot-apache  certbot-dns-digitalocean    certbot-dns-google       certbot-dns-ovh     certbot-nginx            letsencrypt-auto-source  mypy.ini          snap         windows-installer

certbot-auto has been removed from the certbot repo

Also it is unclear to me why it even tries to install from source since my ansible_os_family is 'RedHat'

The default install configured in the role is package. So I think that somewhere you must have configured

certbot_install_method: source

The source install seems to be broken, there no longer is this executable certbot-auto. This executable is deprecated see https://eff-certbot.readthedocs.io/en/latest/install.html#certbot-auto-deprecated.

github-actions[bot] commented 2 months 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.

chiralsoftware commented 1 month ago

I'm getting this issue on Amazon Linux 2023. I'm doing install with source. Install with package didn't work, as it had some conflict with cryptography module which I couldn't figure out. I didn't try the snap installation.

alvaro-gh commented 4 days ago

Just hit this so I moved to the package method.