--- - name: install Systemd-resolved ansible.builtin.yum: name: systemd-resolved state: present - name: enable Systemd-resolved ansible.builtin.service: name: systemd-resolved state: started enabled: true