fix(packer): AWS images
[csit.git] / fdio.infra.ansible / roles / aws / tasks / ubuntu_jammy.yaml
1 ---
2 # file: roles/aws/tasks/ubuntu_jammy.yaml
3
4 - name: Enable deb-src APT Repository
5   ansible.builtin.apt_repository:
6     repo: "deb-src http://archive.ubuntu.com/ubuntu jammy main"
7     state: "present"
8     update_cache: true
9   tags:
10     - aws-enable-src-repo
11
12 - name: Enable deb-src APT Repository Focal
13   ansible.builtin.apt_repository:
14     repo: "deb http://archive.ubuntu.com/ubuntu focal main"
15     state: "present"
16     update_cache: true
17   tags:
18     - aws-enable-src-repo
19
20 - name: Enable deb-src APT Repository Focal Src
21   ansible.builtin.apt_repository:
22     repo: "deb-src http://archive.ubuntu.com/ubuntu focal main"
23     state: "present"
24     update_cache: true
25   tags:
26     - aws-enable-src-repo
27
28 - name: Update Package Cache (APT)
29   ansible.builtin.apt:
30     update_cache: true
31     cache_valid_time: 3600
32   when:
33     - ansible_distribution == 'Ubuntu'
34   tags:
35     - aws-enable-src-repo