1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: Apache-2.0
5 - name: Check distribution
7 msg: "Unsupported distribution: {{ ansible_distribution }}"
8 when: distro_apt[ansible_distribution] is undefined
10 - name: Set up distribution apt repository
12 ansible.builtin.deb822_repository:
13 name: "{{ ansible_distribution|lower }}"
15 uris: "{{ distro_apt[ansible_distribution].aws_mirror if ansible_system_vendor == 'Amazon EC2' else distro_apt[ansible_distribution].mirror }}"
17 - "{{ ansible_distribution_release }}"
18 - "{{ ansible_distribution_release }}-updates"
19 components: "{{ distro_apt[ansible_distribution].components }}"
23 - name: Set up distribution's security apt repository
25 ansible.builtin.deb822_repository:
26 name: "{{ ansible_distribution|lower }}-security"
28 uris: "{{ distro_apt[ansible_distribution].aws_security if ansible_system_vendor == 'Amazon EC2' else distro_apt[ansible_distribution].security }}"
30 - "{{ ansible_distribution_release }}-security"
31 components: "{{ distro_apt[ansible_distribution].components }}"
35 - name: Configure APT::Periodic tasks
37 ansible.builtin.template:
38 src: 65arvados-ansible-unattended-upgrades.j2
39 dest: /etc/apt/apt.conf.d/65arvados-ansible-unattended-upgrades