Files @ 922cda0a1834
Branch filter:

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

branko
MAR-58: Updated roles, LDAP modules, and test site to be compatible with Ansible 2.0.x and 2.1.x. Switched from using sudo/sudo_user to become/become_user. Fixed referencing of variables within roles, mainly for with_items/with_dicts calls. Improved handling of options in ldap_entry module to avoid deprecation of passing dict-like arguments to ldap_entry module. Minor fix to ldap_permissions module.
---

- 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