Files @ 4a3c8915f967
Branch filter:

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

branko
MAR-80: Added support to wsgi_website and php_website roles to specify list of e-mails or accounts that should receive mails delivered to role's administrator/application users. Updated application users in both roles to use same home directory as the admin. Added .keep file for docs/_static in order to avoid warnings when building documentation.
---

- 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