summaryrefslogtreecommitdiff
path: root/roles/apt-repo/base/tasks/main.yml
blob: cc2bc8a0afab6c59b8f9705c5ebc1830330ecbfa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
---
- name: install global sources.list
  template:
    src: "{{ ansible_distribution }}.list.j2"
    dest: /etc/apt/sources.list
  register: apt_repo_base_sources

- name: update apt cache
  when: apt_repo_base_sources is changed
  apt:
    update_cache: yes

## aptitude is needed for package upgrade roles
- name: install aptitude and https transport
  apt:
    name:
    - aptitude
    - apt-transport-https
    state: present