--- # By default the PowerDNS Recursor is installed from the os default repositories. pdns_rec_install_repo: "" # Install the EPEL repository. # EPEL is needed to satisfy some PowerDNS Recursor dependencies like protobuf pdns_rec_install_epel: True # You can install the PowerDNS Recursor package from the 'master' branch as # follows: # - hosts: all # roles: # - { role: PowerDNS.pdns_recursor, # pdns_rec_install_repo: "{{ pdns_rec_powerdns_repo_master }}" # # To install the PowerDNS Recursor package from the '40' branch of # the PowerDNS official repository use the following playbook # - hosts: all # roles: # - { role: PowerDNS.pdns_recursor, # pdns_rec_install_repo: "{{ pdns_rec_powerdns_repo_40 }}" # # To install the PowerDNS Recursor package from a custom repository # override the `pdns_rec_install_repo` default value in your playbook. # e.g. # - hosts: all # vars: # pdns_rec_install_repo: # apt_repo_origin: "repo.example.com" # used to pin the pdns-recursor to the provided repository # apt_repo: "deb http://repo.example.com/{{ ansible_distribution | lower }} {{ ansible_distribution_release | lower }}/pdns-recursor main" # gpg_key: "http://repo.example.com/MYREPOGPGPUBKEY.asc" # repository public GPG key # gpg_key_id: "MYREPOGPGPUBKEYID" # to avoid to reimport the key each time the role is executed # yum_repo_baseurl: "http://repo.example.com/centos/$basearch/$releasever/pdns-recursor" # yum_debug_symbols_repo_baseurl: "http://repo.example.com/centos/$basearch/$releasever/pdns-recursor/debug" # yum_repo_name: "powerdns-rec" # used to select only the pdns-recursor packages coming from this repo # roles: # - { role: PowerDNS.pdns_recursor } # The name of the PowerDNS package pdns_rec_package_name: "{{ default_pdns_rec_package_name }}" pdns_rec_package_version: "" # Install PowerDNS Recursor debug symbols package pdns_rec_install_debug_symbols_package: False # The name of the PowerDNS Recursor debug symbols package pdns_rec_debug_symbols_package_name: "{{ default_pdns_rec_debug_symbols_package_name }}" # The user and group the PowerDNS Recursor will run as. # NOTE: This role does not create any user as we assume the "pdns" user and group # to be created by the PowerDNS Recursor package or by an other role. # If you change these variables, make sure to create the user and groups before # applying this role pdns_rec_user: "{{ default_pdns_rec_user }}" pdns_rec_group: "{{ default_pdns_rec_group }}" # Name of the PowerDNS Service pdns_rec_service_name: "pdns-recursor" # Force the execution of the handlers at the end of the role. # This is required if using this role to configure multiple recursor instances # in a single play to make sure that on configuration changes the correct pnds_recursor # instance is restarted. pdns_rec_flush_handlers: False # State of the PowerDNS Recursor service pdns_rec_service_state: "started" pdns_rec_service_enabled: "yes" # When True, disable the automated restart of the PowerDNS Recursor service pdns_rec_disable_handlers: False # Configuration directory and files pdns_rec_config_dir: "{{ default_pdns_rec_config_dir }}" pdns_rec_config_file: "recursor.conf" pdns_rec_config_lua: "{{ pdns_rec_config_dir }}/config.lua" pdns_rec_config_lua_file_content: "" pdns_rec_config_dns_script: "{{ pdns_rec_config_dir }}/dns-script.lua" pdns_rec_config_dns_script_file_content: "" # Dict containing all configuration options, except for the # "config-dir", "setuid" and "setgid" directives in YAML format. pdns_rec_config: {} # pdns_rec_config: # allow-from: '127.0.0.1/8,192.168.2.0/24' # local-address: 0.0.0.0 # server-id: 'nothing to see here' # Dict with overrides for the service (systemd only) pdns_rec_service_overrides: {} # pdns_rec_service_overrides: # LimitNOFILE: 10000