feat: added molecule role testing
This commit is contained in:
parent
2bbd4c611a
commit
4d45a040ff
5 changed files with 72 additions and 1 deletions
20
molecule/default/verify.yml
Normal file
20
molecule/default/verify.yml
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
---
|
||||
|
||||
# verify
|
||||
- name: "verify"
|
||||
hosts: "all"
|
||||
become: true
|
||||
gather_facts: true
|
||||
tasks:
|
||||
|
||||
# check if kea-dhcp4-server is installed
|
||||
- name: "check package"
|
||||
ansible.builtin.package:
|
||||
name: "kea-dhcp4-server"
|
||||
state: "present"
|
||||
|
||||
# check if kea-dhcp4-server is started
|
||||
- name: "check service"
|
||||
ansible.builtin.service:
|
||||
name: "kea-dhcp4-server"
|
||||
state: "started"
|
||||
Loading…
Add table
Add a link
Reference in a new issue