summaryrefslogtreecommitdiff
path: root/roles/sane_debian_system/tasks/apt.yml
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-04-04 15:02:26 +0300
committerLars Wirzenius <liw@liw.fi>2017-04-04 15:02:26 +0300
commitea81e686e5b33667c9f627eab38bf2b73cbc4f00 (patch)
tree556721380982feb71f0d44be9a42113cdb1e3899 /roles/sane_debian_system/tasks/apt.yml
parent0636aa29d15c94fe9804b8b269ca521c1fb77146 (diff)
downloaddebian-ansible-ea81e686e5b33667c9f627eab38bf2b73cbc4f00.tar.gz
Use underscores, to be systemtic
Diffstat (limited to 'roles/sane_debian_system/tasks/apt.yml')
-rw-r--r--roles/sane_debian_system/tasks/apt.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/roles/sane_debian_system/tasks/apt.yml b/roles/sane_debian_system/tasks/apt.yml
new file mode 100644
index 0000000..4977683
--- /dev/null
+++ b/roles/sane_debian_system/tasks/apt.yml
@@ -0,0 +1,22 @@
+# This is installed before updating sources lists, so that if they
+# happen to use https URLs the package lists can still be update.
+- name: install apt-transport-https
+ apt:
+ name: apt-transport-https
+
+- name: configure main sources.list
+ copy:
+ src: source.list
+ dest: /etc/apt/sources.list
+
+- name: additional sources.list.d/*
+ with_items: "{{ sources_lists }}"
+ apt_repository:
+ repo: "{{ item.repo }}"
+ update_cache: no
+
+- name: dist-upgrade so everything is up to date
+ apt:
+ upgrade: dist
+ update_cache: yes
+ cache_valid_time: 0