Skip to content

Version 1.8.0 fail at yaml config generation because of empty var lua_dns_script #236

@kokel

Description

@kokel

Hello,

thanks for this role and the new version.

OS: Ubuntu 24.04
PDNS Recursor Version: 5.0

The role fails at the task Generate the PowerDNS Recursor configuration because the following vars are empty:

pdns_rec_base_config.recursor.lua_config_file
pdns_rec_base_config.recursor.lua_dns_script

We don't use this and thus we don't set the following vars:

pdns_rec_config_lua_file_content
pdns_rec_config_dns_script_file_content

Error message:

TASK [powerdns.pdns_recursor : Generate the PowerDNS Recursor configuration] ********
[ERROR]: Task failed: The filter plugin 'ansible.builtin.to_nice_yaml' failed: ('cannot represent an object', Undefined)

Task failed.
Origin: /ansible/roles/external/powerdns.pdns_recursor/tasks/configure.yml:36:3

34     mode: "0750"
35
36 - name: Generate the PowerDNS Recursor configuration
     ^ column 3

<<< caused by >>>

The filter plugin 'ansible.builtin.to_nice_yaml' failed: ('cannot represent an object', Undefined)
Origin: /ansible/roles/external/powerdns.pdns_recursor/templates/recursor.conf.j2

fatal: [host]: FAILED! => {"changed": false, "msg": "Task failed: The filter plugin 'ansible.builtin.to_nice_yaml' failed: ('cannot represent an object', Undefined)"}

If we set the mentioned vars is it working:

pdns_rec_config_dns_script_file_content: "-- empty"
pdns_rec_config_lua_file_content: "-- empty"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions