feat: implement molecule to test role (#4)

Reviewed-on: #4
Fix #3
This commit was merged in pull request #4.
This commit is contained in:
2026-03-11 13:50:02 +00:00
parent 2a7cafa46e
commit 22daaaab49
7 changed files with 188 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
#SPDX-License-Identifier: GPL-3.0-only
---
- name: Verify
hosts: all
tasks:
- name: Check traefik binary
ansible.builtin.stat:
path: /opt/traefik/traefik
register: traefik_binary
- name: Assert traefik binary is executable
ansible.builtin.assert:
that:
- traefik_binary.stat.exists
- traefik_binary.stat.executable
- name: Gather service facts
ansible.builtin.service_facts:
- name: Assert traefik service is present
ansible.builtin.assert:
that:
- "'traefik.service' in ansible_facts.services"