summaryrefslogtreecommitdiff
path: root/roles/apt-repo/base/tasks/main.yml
blob: e08029ea95bb4f77e87a9c6d754c216bfd7a7793 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
---
- 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
  command: apt-get update
  args:
    warn: false

- name: create keyring directory for external repos
  file:
    path: /etc/apt/keyrings
    state: directory

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