Skip to content

Commit

Permalink
s
Browse files Browse the repository at this point in the history
  • Loading branch information
fauust committed Sep 26, 2023
1 parent f868c1a commit 0f5b0b6
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions molecule/cluster/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,19 @@
hosts: all

tasks:
- name: Get mariadb service status
ansible.builtin.systemd:
name: "mariadb"
register: mariadb_service
- name: Make sure that service is started
ansible.builtin.service:
name: mariadb
state: started
register: status
failed_when: status.changed

- name: Check that mariadb service is active
ansible.builtin.assert:
that:
- mariadb_service.status.ActiveState == 'active'
- name: Make sure that service is enabled
ansible.builtin.service:
name: mariadb
state: enabled
register: status
failed_when: status.changed

- name: Verify replication
hosts: replica
Expand Down

0 comments on commit 0f5b0b6

Please sign in to comment.