summaryrefslogtreecommitdiff
path: root/roles/apt-repo
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
parentadd nginx/auth/basic role (diff)
add aptly repo
Diffstat (limited to 'roles/apt-repo')
-rw-r--r--roles/apt-repo/aptly/files/repo.gpgbin0 -> 2261 bytes
-rw-r--r--roles/apt-repo/aptly/handlers/main.yml4
-rw-r--r--roles/apt-repo/aptly/tasks/main.yml16
3 files changed, 20 insertions, 0 deletions
diff --git a/roles/apt-repo/aptly/files/repo.gpg b/roles/apt-repo/aptly/files/repo.gpg
new file mode 100644
index 00000000..c4aee014
--- /dev/null
+++ b/roles/apt-repo/aptly/files/repo.gpg
Binary files differ
diff --git a/roles/apt-repo/aptly/handlers/main.yml b/roles/apt-repo/aptly/handlers/main.yml
new file mode 100644
index 00000000..03ed878a
--- /dev/null
+++ b/roles/apt-repo/aptly/handlers/main.yml
@@ -0,0 +1,4 @@
+---
+- name: update apt cache
+ apt:
+ update_cache: yes
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