coopdevs / coopdevs/certbot_nginx
The task includes an option with an undefined variable. The error was: 'domains' is undefined.
- Dominant language
- Jinja
- Stars
- 17
- Forks
- 13
- PR merge metrics
- No merged PRs in 30d
Description
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
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in tasks/certificate.yml at the “Compare domains with domains in certificate” task and inspect how its variables are defined elsewhere in the role. Reproduce the task to confirm the undefined-variable failure, then verify that certificate domain comparison completes without that error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ansible, nginx
- Domain
- devops, infrastructure
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100