29.10. Using Ansible to install an IdM client configured to use eDNS


You can use Ansible to install an IdM client with DNS-over-TLS (DoT) enabled. The example below applies the enforced DoT policy and requires the client to use eDNS queries exclusively.

Prerequisites

  • You are using Ansible version 2.15 or later.
  • You have installed the ansible-freeipa package.
  • The example assumes that the secret.yml Ansible vault stores your ipaadmin_password and that you have access to a file that stores the password protecting the secret.yml file.
  • You have configured the resolver for DNS over TLS on the client.

Procedure

  1. On the controller, create a playbook named install-client-edns.yml that includes a task to install an IdM client with eDNS enabled:

    ---
    - name: Playbook to configure an IdM client with eDNS enabled
      hosts: ipaclients
      become: true
      vars_files:
      - /home/user_name/MyPlaybooks/secret.yml
      vars:
        ipaadmin_password: "{{ ipaadmin_password }}"
        ipaclient_domain=idm.example.com
        ipaclient_dns_over_tls=true
    
      roles:
      - role: freeipa.ansible_freeipa.ipaclient

    If DNSSEC validation is turned off on the IdM server that the client is communicating with, you must also disable it on the client by setting ipaclient_no_dnssec_validation = true in the vars section of the playbook. Otherwise, DNS over TLS will not function correctly for the client.

  2. Run the Ansible playbook:

    $ ansible-playbook --vault-password-file=password_file -v -i ~/MyPlaybooks/inventory ~/MyPlaybooks/install-client-edns.yml

Verification

  1. On the IdM client, review /etc/unbound/unbound.conf:

    $ cat /etc/unbound/unbound.conf
  2. Verify that the configuration contains the IP address and host name of the IdM server.

Troubleshooting

  1. On the IdM client, run a DNS query to trigger traffic:

    $ dig <domain_name>
  2. Review the logs on the IdM server to verify that the query was routed through DoT.
Red Hat logoGithubredditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

Red Hat ドキュメントについて

Red Hat をお使いのお客様が、信頼できるコンテンツが含まれている製品やサービスを活用することで、イノベーションを行い、目標を達成できるようにします。 最新の更新を見る.

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

Theme

© 2026 Red Hat
トップに戻る