feat: add molecule role testing
This commit is contained in:
parent
5483ee4c09
commit
9701ec9eac
3 changed files with 74 additions and 0 deletions
22
molecule/default/verify.yml
Normal file
22
molecule/default/verify.yml
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue