Initial Commit

This commit is contained in:
2020-10-13 16:33:32 +13:00
commit d646952ef5
23 changed files with 429 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
---
# This is an example playbook to execute Ansible tests.
- name: Verify
hosts: all
pre_tasks:
- name: Gather facts of packages
package_facts:
manager: "auto"
- name: Populate service facts
service_facts:
tasks:
- name: check-mk-agent is installed
assert:
that: "'check-mk-agent' in ansible_facts.packages"
quiet: true
- name: xinetd is running and enabled
assert:
that:
- ansible_facts.services["xinetd.service"].state == "running"
- ansible_facts.services["xinetd.service"].status == "enabled"
quiet: true