summaryrefslogtreecommitdiff
path: root/roles/apt-repo/aptly/tasks/main.yml
blob: e11d610e32712649e1436f5a04f189b17c0a88b7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
---
- name: add repository key
  copy:
    src: repo.gpg
    dest: /etc/apt/trusted.gpg.d/aptly.gpg
  notify: update apt cache

- name: add repository entry
  copy:
    content: |
      deb http://repo.aptly.info/ squeeze main
    dest: /etc/apt/sources.list.d/aptly.list
  notify: update apt cache

- name: update apt cache
  meta: flush_handlers