summaryrefslogtreecommitdiff
path: root/roles/apt-repo/tor-project/tasks/main.yml
blob: eef39c1948eef93fd559b5c6c7b91f2a33aa2837 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---
- name: install apt https transport
  apt:
    name: apt-transport-https
    state: present

- name: add repository key
  copy:
    src: repo.gpg
    dest: /etc/apt/trusted.gpg.d/tor-project.gpg
  notify: update apt cache

- name: add repository entry
  copy:
    content: |
      deb [arch=amd64] http://deb.torproject.org/torproject.org {{ ansible_distribution_release }} main
    dest: /etc/apt/sources.list.d/tor-poject.list
  notify: update apt cache

- name: update apt cache
  meta: flush_handlers