geerlingguy / ansible-role-certbot

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

Unable to install from Source #195

Closed PriyankaPrakashChand closed 9 months ago

PriyankaPrakashChand commented 1 year ago

I am trying to install certbot via ansible from source but I am facing the following error image image

- name: Main Play
  hosts: local
  become: true
  vars:
    admin_user: "{{ ansible_user }}"
    admin_user_dir: /home/{{admin_user}}/
    certbot_install_method: source
    certbot_auto_renew: true
    certbot_auto_renew_user: "{{ ansible_user }}"
    certbot_create_method: webroot
    certbot_auto_renew_options: "--quiet --no-self-upgrade"
    certbot_create_if_missing: true
    certbot_hsts: true
    certbot_admin_email: zxxxxxxxxxxx@gmail.com
    certbot_testmode: true

    certbot_certs:
      - webroot: "/var/www/letsEncrypt/"
        domains:
          - travelerindubai.com
    pip_install_packages:
      - docker
      - docker-compose
  roles:
    - geerlingguy.git
    - geerlingguy.certbot

I think the issue is the value of certbot_script that is set in tasks> install-from-source.yml> Set Certbot script variable. where certbot_script: "{{ certbot_dir }}/certbot-auto"

while the latest certbot files have been removed from certbots Github directory: https://github.com/certbot/certbot/pull/8938 can someone help explain/fix this?

vitabaks commented 1 year ago

I think "certbot_install_method: source" is no longer necessary, at least in its current form, since the "certbot-auto" file no longer exists.

astrojuanlu commented 1 year ago

It is necessary if you're affected by https://github.com/geerlingguy/ansible-role-certbot/issues/21 I believe

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

github-actions[bot] commented 9 months ago

This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.