summaryrefslogtreecommitdiff
path: root/roles/sane_debian_system/tasks/apt.yml
blob: 8d57292e2ab1256d936c09ccb2ce765571043ac5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# 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
  template:
    src: sources.list.j2
    dest: /etc/apt/sources.list

- name: additional sources.list.d/*
  with_items: "{{ sources_lists }}"
  apt_repository:
    repo: "{{ item.repo }}"
    update_cache: no

- name: update package lists
  apt:
    update_cache: yes
    cache_valid_time: 0

- name: dist-upgrade so everything is up to date
  apt:
    upgrade: dist