ansible-role-certbot icon indicating copy to clipboard operation
ansible-role-certbot copied to clipboard

Unable to install from Source

Open PriyankaPrakashChand opened this issue 2 years ago • 3 comments

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: [email protected]
    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?

PriyankaPrakashChand avatar Apr 11 '23 15:04 PriyankaPrakashChand

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

vitabaks avatar Jul 13 '23 17:07 vitabaks

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

astrojuanlu avatar Aug 05 '23 19:08 astrojuanlu

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] avatar Dec 04 '23 12:12 github-actions[bot]

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.

github-actions[bot] avatar Feb 05 '24 12:02 github-actions[bot]