feat: added molecule role testing
This commit is contained in:
parent
f933fe02a4
commit
1791ff33b5
3 changed files with 70 additions and 0 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 keepalived is installed
|
||||
- name: "check package"
|
||||
ansible.builtin.package:
|
||||
name: "keepalived"
|
||||
state: "present"
|
||||
|
||||
# check if keepalived is started
|
||||
- name: "check service"
|
||||
ansible.builtin.service:
|
||||
name: "keepalived"
|
||||
state: "started"
|
||||
Loading…
Add table
Add a link
Reference in a new issue