apt: update_cache=yes cache_valid_time=86400
- name: Add snapshot soures for gcc-11-powerpc/riscv64
- when: ansible_distribution == 'Debian'
+ when: ansible_distribution == 'Debian' and ansible_distribution_major_version == '12'
block:
- ansible.builtin.copy:
dest: /etc/apt/preferences.d/snapshot.pref