Add Debian/Official Docker repo toggle

- Default docker_official toggle to false (for now)
- Preempt MariaDB restart before container restarts
- Start containers in a handler
This commit is contained in:
2023-10-22 11:33:05 -04:00
parent 5b09029239
commit 7f91b24adb
8 changed files with 96 additions and 29 deletions

View File

@@ -2,4 +2,11 @@
ansible.builtin.service:
name: mariadb
state: restarted
when: not mariadb_restarted
listen: restart_mariadb
- name: Set MariaDB as restarted
set_fact:
mariadb_restarted: true
when: not mariadb_restarted
listen: restart_mariadb

View File

@@ -3,6 +3,10 @@
name: mariadb-server
state: present
- name: Set MariaDB restarted fact
set_fact:
mariadb_restarted: false
- name: Regather facts for the potentially new docker0 interface
ansible.builtin.setup: