Files @ 814be5def61d
Branch filter:

Location: majic-ansible-roles/roles/database/tasks/main.yml

branko
MAR-189: Added support for Debian 11 Bullseye to xmpp_server role:

- Roll-out LDAP client configuration since Bullseye does not come with
a stock one at /etc/ldap/ldap.conf that sets the trust anchor
correctly for validating LDAP server certificates.
- Drop the backports pinning in case of Bullseye (for now let's try to
keep the Buster and Bullseye at same versions for simplicity).
- Drop installation of Python apt bindings (no longer used).
- Tests for Buster and Bullseye need to be split-up a bit due to some
differences around backports etc.
---

- name: "Create database {{ db_name }}"
  mysql_db:
    name: "{{ db_name }}"
    state: present
    login_unix_socket: "/var/run/mysqld/mysqld.sock"

- name: "Create database user {{ db_name }}"
  mysql_user:
    name: "{{ db_name }}"
    password: "{{ db_password }}"
    priv: "{{ db_name }}.*:ALL"
    state: present
    login_unix_socket: "/var/run/mysqld/mysqld.sock"

- name: Enable backup
  include: backup.yml
  when: enable_backup

- name: Explicitly run all handlers
  include: ../handlers/main.yml
  when: "run_handlers | default(False) | bool()"
  tags:
    - handlers