--- - name: Prepare hosts: all tasks: - name: Update apt ansible.builtin.apt: update_cache: true - name: Install bind9-dnsutils package ansible.builtin.apt: name: bind9-dnsutils state: present