---

- name: Install dependencies for Tor Browser build
  apt:
      name: "{{ item }}"
      state: present
  with_items:
      - git
      - sudo
      - libyaml-libyaml-perl
      - libtemplate-perl
      - libio-handle-util-perl
      - libio-all-perl
      - libio-captureoutput-perl
      - libpath-tiny-perl
      - libstring-shellquote-perl
      - libsort-versions-perl
      - libdigest-sha-perl
      - libdata-uuid-perl
      - libdata-dump-perl
      - libfile-copy-recursive-perl
      - libfile-slurp-perl
      - libgtk2.0-dev
      - curl
      - runc
      - mercurial

- name: Install dependencies for update_responses script
  apt:
      name: "{{ item }}"
      state: present
  with_items:
      - libfindbin-libs-perl
      - libxml-writer-perl
      - libparallel-forkmanager-perl
      - libxml-libxml-perl
      - libwww-perl
      - libjson-perl
      - libyaml-perl

- name: Create the tbb-build group
  group:
      name: tbb-build
      state: present

- name: Give sudo access to tbb-build group members
  copy: src=sudoers-tbb-build dest=/etc/sudoers.d/tbb-build owner=root group=root mode=0440
