Files @ 14eb78a4f466
Branch filter:

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

branko
MAR-129: Updated php_website role for Ansible 2.5.x and new Molecule:

- Include global linting configuration file in tests.
- Fixed linting issues.
- Fix deprecation warnings from Ansible (for apt module and
state=installed).
- Updated how the hosts are being referenced within tests.
---

- 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