- name: Configure instance(s)
  hosts: all
  become: True
  gather_facts: True
  serial: 10
  vars:
    migrate_db: "yes"
  roles:
    - role: aws
      when: COMMON_ENABLE_AWS_ROLE
    - role: nginx
      nginx_sites:
      - cms
      - lms
      - xqueue
      - learner_portal
      - program_manager
      nginx_default_sites:
      - lms
    - mysql
    - role: edxlocal
      tags: edxlocal
    - memcache
    - mongo_3_4
    - { role: 'edxapp', celery_worker: True }
    - edxapp
    - testcourses
    - role: redis
    - oraclejdk
    - elasticsearch
    - forum
    - { role: notifier, NOTIFIER_DIGEST_TASK_INTERVAL: "5" }
    - { role: "xqueue", update_users: True }
    - edx_ansible
    - analytics_api
    - ecommerce
    - credentials
    - discovery
    - role: registrar
      when: REGISTRAR_ENABLED
    - role: learner_portal
      when: LEARNER_PORTAL_ENABLED
    - role: program_manager
      when: PROGRAM_MANAGER_ENABLED
    - oauth_client_setup
    - role: datadog
      when: COMMON_ENABLE_DATADOG
    - role: splunkforwarder
      when: COMMON_ENABLE_SPLUNKFORWARDER
    - role: datadog-uninstall
      when: not COMMON_ENABLE_DATADOG
    - flower

- name: Configure instance(s)
  hosts: all
  become: True
  gather_facts: True
  serial: 10
  vars:
    migrate_db: "yes"
  roles:
    - role: aws
      when: COMMON_ENABLE_AWS_ROLE
    - role: nginx
      nginx_sites:
      - cms
      - lms
      - xqueue
      - learner_portal
      - program_manager
      nginx_default_sites:
      - lms
    - mysql
    - role: edxlocal
      tags: edxlocal
    - memcache
    - mongo_3_6
    - { role: 'edxapp', celery_worker: True }
    - edxapp
    - testcourses
    - role: redis
    - oraclejdk
    - elasticsearch
    - forum
    - { role: notifier, NOTIFIER_DIGEST_TASK_INTERVAL: "5" }
    - { role: "xqueue", update_users: True }
    - edx_ansible
    - analytics_api
    - ecommerce
    - credentials
    - discovery
    - role: registrar
      when: REGISTRAR_ENABLED
    - role: learner_portal
      when: LEARNER_PORTAL_ENABLED
    - role: program_manager
      when: PROGRAM_MANAGER_ENABLED
    - oauth_client_setup
    - role: datadog
      when: COMMON_ENABLE_DATADOG
    - role: splunkforwarder
      when: COMMON_ENABLE_SPLUNKFORWARDER
    - role: datadog-uninstall
      when: not COMMON_ENABLE_DATADOG
    - flower

Upgrade sandboxes to Mongo 3.6
Upgrade sandboxes to Mongo 3.6
