--- - name: Install dnsmasq ansible.builtin.apt: name: dnsmasq state: latest update_cache: true - name: Enable dnsmasq service ansible.builtin.service: name: dnsmasq state: started - name: Start dnsmasq service ansible.builtin.service: name: dnsmasq enabled: true