summaryrefslogtreecommitdiff
path: root/roles/apt-repo/aptly/tasks
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2020-09-08 20:10:24 +0200
committerChristian Pointner <equinox@spreadspace.org>2020-09-08 20:10:24 +0200
commit1b6986ba69064355017e38ccfa1e7c7f926d1d0c (patch)
treecc309b23a02463a5cca802ffd8721bddc550bd2e /roles/apt-repo/aptly/tasks
parentadd nginx/auth/basic role (diff)
add aptly repo
Diffstat (limited to 'roles/apt-repo/aptly/tasks')
-rw-r--r--roles/apt-repo/aptly/tasks/main.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/roles/apt-repo/aptly/tasks/main.yml b/roles/apt-repo/aptly/tasks/main.yml
new file mode 100644
index 00000000..e11d610e
--- /dev/null
+++ b/roles/apt-repo/aptly/tasks/main.yml
@@ -0,0 +1,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