From 1b6986ba69064355017e38ccfa1e7c7f926d1d0c Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Tue, 8 Sep 2020 20:10:24 +0200 Subject: add aptly repo --- roles/apt-repo/aptly/tasks/main.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 roles/apt-repo/aptly/tasks/main.yml (limited to 'roles/apt-repo/aptly/tasks/main.yml') 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 -- cgit v1.2.3