Commit | Line | Data |
---|---|---|
601db8ee MJ |
1 | --- |
2 | - name: Update apt cache. | |
3 | apt: update_cache=yes cache_valid_time=86400 | |
4 | ||
a862e336 KS |
5 | - name: Add snapshot soures for gcc-11-powerpc/riscv64 |
6 | when: ansible_distribution == 'Debian' | |
7 | block: | |
8 | - ansible.builtin.copy: | |
9 | dest: /etc/apt/preferences.d/snapshot.pref | |
10 | content: "Package: *\nPin: origin \"snapshot.debian.org\"\nPin-Priority: 400\n" | |
11 | - ansible.builtin.apt_repository: | |
12 | repo: 'deb [check-valid-until=no] https://snapshot.debian.org/archive/debian/20230109T091852Z/ bookworm main' | |
13 | - ansible.builtin.apt: | |
14 | update_cache: true | |
15 | ||
0eb6d73e | 16 | - name: Ensure cross-compilers packages are installed. |
58e747d8 | 17 | apt: "name={{ cross_compilers_packages }} state=present" |