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

certbot_create_extra_args not defined error #220

Open boosh opened 3 months ago

boosh commented 3 months ago

Looks like it needs a default value to stop ansible failing.

fatal: [web1]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: ... 'certbot_create_extra_args' is undefined\n\nThe error appears to be in '/Users/ansible/roles/geerlingguy.certbot/tasks/create-cert-standalone.yml': line 40, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Generate new certificate if one doesn't exist.\n  ^ here\n"}
neeco1991 commented 2 months ago

For people experiencing this bug, for the moment you can solve defining the variable to an empty string:

certbot_create_extra_args: '' 
pavlozt commented 1 month ago

@geerlingguy An unfortunate omission. Let's fix this