-
-
Notifications
You must be signed in to change notification settings - Fork 519
Open
Labels
Description
Describe the bug
Running the playbook nas.yml wihout major changes, the 'route53_ddn' role fails because the 'route53_enabled' variable is undefined, must be changed to 'route53_ddns_enabled' in the files:
- roles/route53_ddns/molecule/default/molecule.yml
- roles/route53_ddns/molecule/default/side_effect.yml
- roles/route53_ddns/tasks/main.yml
- roles/route53_ddns/tasks/route53_enable.code-search
Expected behavior
The role runs without problems
Actual behavior
Variable "route53_enabled" is undefined
Steps to reproduce
ansible-playbook -i inventories/my-inventory/inventory nas.yml -b -K
Playbook Output
TASK [route53_ddns : Create AWS Route53 Dynamic DNS Directories] **********************************************
[ERROR]: Task failed: Error while evaluating conditional: 'route53_enabled' is undefined
Task failed.
Origin: /workspaces/ansible-nas/roles/route53_ddns/tasks/main.yml:4:7
2 - name: Start AWS Route53 Dynamic DNS
3 block:
4 - name: Create AWS Route53 Dynamic DNS Directories
^ column 7
<<< caused by >>>
Error while evaluating conditional: 'route53_enabled' is undefined
Origin: /workspaces/ansible-nas/roles/route53_ddns/tasks/main.yml:27:9
25 memory: "{{ route53_memory }}"
26 recreate: "{{ template_config is changed }}"
27 when: route53_enabled is true
^ column 9
fatal: [ansible-nas]: FAILED! => {"changed": false, "msg": "Task failed: Error while evaluating conditional: 'route53_enabled' is undefined"}