homelab/roles/mariadb/handlers/main.yml

13 lines
292 B
YAML
Raw Normal View History

- name: Restart MariaDB
ansible.builtin.service:
name: mariadb
state: restarted
when: not mariadb_restarted
listen: restart_mariadb
- name: Set MariaDB as restarted
2023-11-06 02:34:19 +00:00
ansible.builtin.set_fact:
mariadb_restarted: true
when: not mariadb_restarted
listen: restart_mariadb