geerlingguy / ansible-role-certbot

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

Syntax Error on install-with-snap.yml' #177

Closed ziegelstein closed 2 years ago

ziegelstein commented 2 years ago

The role seems to have some Syntax Error. Running the following example playbook:

---
- hosts: example_server
  become: true
  vars:
    certbot_install_method: package
    certbot_auto_renew_minute: "30"
    certbot_auto_renew_hour: "5"
    certbot_create_method: standalone
    certbot_auto_renew_user: root
    certbot_certs:
      - email: example@mail.com
        domains:
        - cert.example.com
  roles:
    - geerlingguy.certbot

gives the following error

ERROR! couldn't resolve module/action 'snap'. This often indicates a misspelling, missing collection, or incorrect module path.

The error appears to be in '/home/user/.ansible/roles/geerlingguy.certbot/tasks/install-with-snap.yml': line 27, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

- name: Install certbot via snap.
  ^ here

I'm using Ansible 2.10 and the current ansible galaxy version of the role on Ubuntu 20. I haven't checked the role itself, yet.

stale[bot] commented 2 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.

stale[bot] commented 2 years 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.

pat-s commented 2 years ago

Getting the same issue, commenting the respective task out solved the issue.