diff options
author | Sacha Chua <sacha@sachachua.com> | 2022-10-15 01:24:07 -0400 |
---|---|---|
committer | Sacha Chua <sacha@sachachua.com> | 2022-10-15 01:24:07 -0400 |
commit | 4229be28d7ecbafe1747af03c4267164b0801abe (patch) | |
tree | 2e615cffc44c051e1e963a4cde288d80db108c07 | |
parent | 5266ca74db9f1e1442d957bbd4be17335266b261 (diff) | |
download | emacsconf-ansible-4229be28d7ecbafe1747af03c4267164b0801abe.tar.xz emacsconf-ansible-4229be28d7ecbafe1747af03c4267164b0801abe.zip |
Make sure mariadb is running before we remove users
Diffstat (limited to '')
-rw-r--r-- | pad/tasks/mariadb.yml | 20 |
1 files changed, 10 insertions, 10 deletions
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 }}" |