---
- name: Install Security Testing
  shell: "rsync -avz devops/modules/ sites/all/modules/contrib/"

- name: Enable Security Review module
  shell: "drush en -y security_review"

- name: Creating build reports dir
  shell: mkdir {{ build_reports_dir }}
  ignore_errors: yes

- name: Creating Security Review file
  shell: echo " " >> {{ build_reports_dir }}/SecurityReview.txt

- name: Run Security Review
  shell: "drush secrev 2>&1 | grep error | tee -a {{ build_reports_dir }}/SecurityReview.txt"

---
- name: Install Security Testing
  shell: "rsync -avz devops/modules/ sites/all/modules/contrib/"
  sudo: yes

- name: Enable Security Review module
  shell: "drush en -y security_review"

- name: Creating build reports dir
  shell: mkdir {{ build_reports_dir }}
  ignore_errors: yes

- name: Creating Security Review file
  shell: echo " " >> {{ build_reports_dir }}/SecurityReview.txt

- name: Run Security Review
  shell: "drush secrev 2>&1 | grep error | tee -a {{ build_reports_dir }}/SecurityReview.txt"

Add sudo to Security Testing.
Add sudo to Security Testing.