blob: 4977683618dd4a855bf83a5e5c5d37099ea37732 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
|