- hosts: '{{ group | default("qa") }}'
  connection: '{{ conn | default("local") }}'
  remote_user: deploy
  # Set environment to use scl rh-python35
  environment:
    PATH: '/opt/rh/rh-python35/root/usr/bin/:/opt/rh/rh-nodejs6/root/usr/bin:{{ ansible_env.PATH }}'
    LD_LIBRARY_PATH: '/opt/rh/rh-python35/root/usr/lib64::/opt/rh/rh-nodejs6/root/usr/lib64'
    PYTHON_PATH: '/opt/rh/rh-nodejs6/root/usr/lib/python2.7/site-packages'
  roles:
      # Creates repo variable names and builds repo
      - projectrepo
      # Builds a production deploy and sets file permissions correctly
      - buildprod
      # Makes an emergency database backup, run migrations, and then resets
      # symlinks
      - golive

- hosts: '{{ group | default("qa") }}'
  connection: '{{ conn | default("local") }}'
  remote_user: deploy
  # Set environment to use scl rh-python35
  environment:
    PATH: '/opt/rh/rh-python35/root/usr/bin/:/opt/rh/rh-nodejs8/root/usr/bin:{{ ansible_env.PATH }}'
    LD_LIBRARY_PATH: '/opt/rh/rh-python35/root/usr/lib64::/opt/rh/rh-nodejs8/root/usr/lib64'
    PYTHON_PATH: '/opt/rh/rh-nodejs8/root/usr/lib/python2.7/site-packages'
  roles:
      # Creates repo variable names and builds repo
      - projectrepo
      # Builds a production deploy and sets file permissions correctly
      - buildprod
      # Makes an emergency database backup, run migrations, and then resets
      # symlinks
      - golive

Configure deploy to use rh-nodejs8
Configure deploy to use rh-nodejs8
