# decrypt_secrets.yml
#
- name: install git
  action: yum name=git state=latest

- name: install openssl
  action: yum name=openssl state=present

- name: install DVLA secrets
  git: repo={{ GIT_REMOTE_STRING }} dest=/etc/DVLA/secrets version=HEAD

- name: create conf directory for vehicles-secrets
  file: path=/opt/vrm-retention-online-1.0-SNAPSHOT/conf state=directory

- name: Decrypt vehiclesOnline.conf
  shell: /etc/DVLA/secrets/decrypt-file /etc/DVLA/secrets/ui/dev/vrm-retention-online.conf.enc /opt/vrm-retention-online-1.0-SNAPSHOT/conf/vrm-retention-online.conf {{ GIT_SECRET_PASSPHRASE }}
  
#- name: Decrypt google-analytics.conf
#  shell: /etc/DVLA/secrets/decrypt-file /etc/DVLA/secrets/ui/dev/google-analytics.conf.enc /opt/vrm-retention-online-1.0-SNAPSHOT/conf/google-analytics.conf {{ GIT_SECRET_PASSPHRASE }}


# decrypt_secrets.yml
#
- name: install git
  action: yum name=git state=latest

- name: install openssl
  action: yum name=openssl state=present

- name: install DVLA secrets
  git: repo={{ GIT_REMOTE_STRING }} dest=/etc/DVLA/secrets version=HEAD

- name: create conf directory for vehicles-secrets
  file: path=/opt/vrm-retention-online-1.0-SNAPSHOT/conf state=directory

- name: Decrypt vehiclesOnline.conf
  shell: /etc/DVLA/secrets/decrypt-file /etc/DVLA/secrets/ui/dev/vrm-retention-online.conf.enc /opt/vrm-retention-online-1.0-SNAPSHOT/conf/vrm-retention-online.conf {{ GIT_SECRET_PASSPHRASE }}
  
- name: Decrypt google-analytics.conf
  shell: /etc/DVLA/secrets/decrypt-file /etc/DVLA/secrets/ui/dev/google-analytics.conf.enc /opt/vrm-retention-online-1.0-SNAPSHOT/conf/google-analytics.conf {{ GIT_SECRET_PASSPHRASE }}


Revert "Commented out reference to google-analytics"
Revert "Commented out reference to google-analytics"

This reverts commit 6b7a071bfcb9c1fca486fbbcf87e0755462e20b5.
