diff options
author | Sacha Chua <sacha@sachachua.com> | 2025-09-22 14:28:30 -0400 |
---|---|---|
committer | Sacha Chua <sacha@sachachua.com> | 2025-09-22 14:28:30 -0400 |
commit | 5c81e73d546fbc804477f4c4a5145400e2daac3e (patch) | |
tree | 0fbc2edf0b4952f15f0151e1f9a9f40df3bc1d64 /roles/pad/tasks/mariadb.yml | |
parent | 8f272a96965fb15be36ce3666e1f7533353759b0 (diff) | |
download | emacsconf-ansible-5c81e73d546fbc804477f4c4a5145400e2daac3e.tar.xz emacsconf-ansible-5c81e73d546fbc804477f4c4a5145400e2daac3e.zip |
Switch to systemli.etherpad role: currently installs etherpad 2.5.0
Diffstat (limited to '')
-rw-r--r-- | roles/pad/tasks/mariadb.yml | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/roles/pad/tasks/mariadb.yml b/roles/pad/tasks/mariadb.yml deleted file mode 100644 index ec81430..0000000 --- a/roles/pad/tasks/mariadb.yml +++ /dev/null @@ -1,42 +0,0 @@ ---- -- name: Install MySQL packages - apt: - name: - - mariadb-server - - mariadb-client - - python3-mysqldb -- name: Ensure mysql is configured to bind only to localhost - ini_file: - dest: /etc/mysql/my.cnf - section: mysqld - option: "bind-address" - value: "127.0.0.1" -- name: Start MariaDB - service: - name: mysql - state: restarted - enabled: yes - 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 }}" - collation: utf8mb4_general_ci - state: present -- name: Grant permissions to user - mysql_user: - name: "{{ etherpad_database_user }}" - state: present - priv: "{{ etherpad_database_name }}.*:ALL" - password: "{{ etherpad_database_password }}" |