Skip to content
Snippets Groups Projects
Verified Commit ecd6a2c3 authored by Chris Croome's avatar Chris Croome
Browse files

handlers test

parent 3e2af348
No related branches found
Tags 1.3.1
No related merge requests found
Pipeline #30900 passed
......@@ -8,18 +8,39 @@
#
# You should have received a copy of the GNU General Public License along with the Webarchitects MariaDB Ansible role. If not, see <https://www.gnu.org/licenses/>.
---
- name: Reload systemd
ansible.builtin.systemd:
daemon_reload: true
listen: Reload systemd
- name: Ansible core >= 2.16.0
block:
- name: Reload systemd
ansible.builtin.systemd_service:
daemon_reload: true
listen: Reload systemd
- name: MariaDB restarted
ansible.builtin.systemd_service:
name: mysql
state: restarted
listen: Restart mariadb
when: ansible_version.string is ansible.builtin.version('2.16.0', 'ge')
tags:
- mariadb
- name: MariaDB restarted
ansible.builtin.systemd_service:
name: mysql
state: restarted
listen: Restart mariadb
- name: Ansible core < 2.16.0
block:
- name: Reload systemd
ansible.builtin.systemd:
daemon_reload: true
listen: Reload systemd
- name: MariaDB restarted
ansible.builtin.systemd:
name: mysql
state: restarted
listen: Restart mariadb
when: ansible_version.string is ansible.builtin.version('2.16.0', 'lt')
tags:
- mariadb
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment