ansible-mysql/molecule/debian12_upstream/verify.yml

12 lines
323 B
YAML

---
- name: Verify slave
hosts: all
gather_facts: false
tasks:
- name: COMMAND | Check if mariadb is running # noqa: command-instead-of-module
ansible.builtin.command: "systemctl is-active mariadb"
register: mariadb_is_running
changed_when: false
failed_when: mariadb_is_running.rc != 0