feat: add molecule role testing

This commit is contained in:
Simon Cornet 2025-07-17 16:58:14 +02:00
commit 9701ec9eac
3 changed files with 74 additions and 0 deletions

View file

@ -0,0 +1,22 @@
---
# verify
- name: "verify"
hosts: "all"
become: true
gather_facts: true
tasks:
# check if unbound is installed
- name: "check package"
ansible.builtin.package:
name: "unbound"
state: "present"
check_mode: true
# check if unbound is started
- name: "check service"
ansible.builtin.service:
name: "unbound"
state: "started"
check_mode: true