---
- block:
- name: Install package
package:
name: dnsmasq
state: present
- name: Ensure dnsmasq is up and running
service:
enabled: True
state: started
become: True
become_user: root