From b6b4e312b1192dc01b1f16ecbbe399dad8155fd0 Mon Sep 17 00:00:00 2001 From: neingeist Date: Sun, 25 Sep 2016 15:26:22 +0200 Subject: [PATCH] add role to configure jessie-backports --- files/jessie-backports.list | 2 ++ tasks/main.yml | 7 +++++++ 2 files changed, 9 insertions(+) create mode 100644 files/jessie-backports.list create mode 100644 tasks/main.yml diff --git a/files/jessie-backports.list b/files/jessie-backports.list new file mode 100644 index 0000000..f12e73c --- /dev/null +++ b/files/jessie-backports.list @@ -0,0 +1,2 @@ +deb http://ftp.de.debian.org/debian jessie-backports main +deb-src http://ftp.de.debian.org/debian jessie-backports main diff --git a/tasks/main.yml b/tasks/main.yml new file mode 100644 index 0000000..51aae06 --- /dev/null +++ b/tasks/main.yml @@ -0,0 +1,7 @@ +- name: install jessie-backports apt list + copy: src=jessie-backports.list dest=/etc/apt/sources.list.d/ + register: jessie_backports_list + +- name: apt-get update + apt: update_cache=yes + when: jessie_backports_list|changed