---
- name: Setup vhosts on DenOfPython
  hosts: python-cave.ping.local

  tasks:

  - include: helpers/nginx_base_setup.yaml

  - name: Ensure that databases and users exists
    include_tasks: helpers/mariadb_db_add.yaml
    loop:
    - {dbname: "001", password: "*A8AC9DD9636B33B18132578A39720BBC3827E261"}

  - name: Ensure that databases and users do not exist
    include_tasks: helpers/mariadb_db_remove.yaml
    loop:
    - {dbname: "000"}