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