Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The task includes an option with an undefined variable. The error was: 'domains' is undefined. #34

Open
favour121 opened this issue Dec 7, 2023 · 1 comment

Comments

@favour121
Copy link

TASK [coopdevs.certbot_nginx : Compare domains with domains in certificate] **************************************************************************
fatal: [server-name]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'domains' is undefined. 'domains' is undefined\n\nThe error appears to be in '/home/user/.ansible/roles/coopdevs.certbot_nginx/tasks/certificate.yml': line 29, 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: Compare domains with domains in certificate\n ^ here\n"}

Offending task code:

- name: Compare domains with domains in certificate
  set_fact:
    certbot_force_update: "{{ old_domains | symmetric_difference(domains) | length | bool }}"
  when: certbot_force_update is not defined
@enricostano
Copy link
Contributor

I guess this is an unwanted coupling with another project, historically related to this ansible role:

https://git.coopdevs.org/coopdevs/odoo/odoo-provisioning/odoo-provisioning/-/merge_requests/70/diffs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants