From 4229be28d7ecbafe1747af03c4267164b0801abe Mon Sep 17 00:00:00 2001 From: Sacha Chua Date: Sat, 15 Oct 2022 01:24:07 -0400 Subject: Make sure mariadb is running before we remove users --- pad/tasks/mariadb.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'pad') diff --git a/pad/tasks/mariadb.yml b/pad/tasks/mariadb.yml index 8e613b6..ec81430 100644 --- a/pad/tasks/mariadb.yml +++ b/pad/tasks/mariadb.yml @@ -5,16 +5,6 @@ - mariadb-server - mariadb-client - python3-mysqldb -- name: Ensure anonymous users are not in the database - mysql_user: - name: "" - host: "{{ item }}" - state: absent - with_items: - - localhost - - 127.0.0.1 - - ::1 - - "%" - name: Ensure mysql is configured to bind only to localhost ini_file: dest: /etc/mysql/my.cnf @@ -29,6 +19,16 @@ runlevel: - 3 - 5 +- name: Ensure anonymous users are not in the database + mysql_user: + name: "" + host: "{{ item }}" + state: absent + with_items: + - localhost + - 127.0.0.1 + - ::1 + - "%" - name: Ensure emacsconf-pad database exists mysql_db: name: "{{ etherpad_database_name }}" -- cgit v1.2.3