Files @ 3d3f7f804487
Branch filter:

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

branko
MAR-22: Added missing tests for common role and did small clean-up:

- Removed deployment of SSH client configuration from helper machine.
- Added tests for verifying backup configuration (deployed via meta
dependencies).
---

- name: "Create database {{ db_name }}"
  mysql_db: name="{{ db_name }}" state=present

- name: "Create database user {{ db_name }}"
  mysql_user: name="{{ db_name }}" password="{{ db_password }}"
              priv="{{ db_name }}.*:ALL" state=present

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

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