-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.yml
125 lines (125 loc) · 3.28 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
# Copyright 2019-2025 Chris Croome
#
# This file is part of the Webarchitects apt Ansible role.
#
# The Webarchitects apt Ansible role is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
#
# The Webarchitects apt Ansible role is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along with the Webarchitects apt Ansible role. If not, see <https://www.gnu.org/licenses/>.
---
# Set apt to true for the tasks in this role to be run
apt: false # noqa: no-role-prefix
# The optional apt_config will be combined with the apt_default_config if defined
# apt_config:
# Set apt_distro_switch to true if switching distro, eg buster to bullseye
apt_distro_switch: false
# Install apticron, when true this causes a outgoing mailserver to be installed
apt_apticron: false
apt_apticron_pkgs:
- apticron
# Install local fact scripts
apt_local_facts: true
# Local fact scripts
apt_local_facts_files:
- name: bash.fact
state: present
- name: dpkg.fact
state: present
- name: dpkg_arch.fact
state: absent
- name: gpg.fact
state: present
- name: sh.fact
state: present
apt_local_facts_pkgs:
- bash
- coreutils
- dpkg
- gawk
- gpg
- jo
apt_pkgs:
- distro: bookworm
pkgs:
- debian-archive-keyring
- apt-listchanges
- apt-show-versions
- apt-utils
- aptitude
- aptitude-common
- file
- needrestart
- python3-apt
- python3-debian
- xz-utils
- distro: bullseye
pkgs:
- debian-archive-keyring
- apt-listchanges
# Installing apt-show-versions fails in the CI
# - apt-show-versions
- apt-utils
- aptitude
- aptitude-common
- file
- needrestart
- python3-apt
- python3-debian
- xz-utils
- distro: buster
pkgs:
- debian-archive-keyring
- apt-listchanges
- apt-show-versions
- apt-utils
- aptitude
- aptitude-common
- file
- needrestart
- python3-apt
- python3-debian
- xz-utils
- distro: jammy
pkgs:
- apt-listchanges
- apt-show-versions
- apt-utils
- aptitude
- aptitude-common
- file
- needrestart
- python3-apt
- python3-debian
- ubuntu-keyring
- xz-utils
- distro: noble
pkgs:
- apt-listchanges
- apt-show-versions
- apt-utils
# Currently fails with
# aptitude : Depends: aptitude-common (= 0.8.13-5ubuntu2) but 0.8.13-5ubuntu4 is to be installed
# - aptitude
# - aptitude-common
- file
- needrestart
- python3-apt
- python3-debian
- ubuntu-keyring
- xz-utils
- distro: trixie
pkgs:
- debian-archive-keyring
- apt-listchanges
- apt-show-versions
- apt-utils
- aptitude
- aptitude-common
- file
- needrestart
- python3-apt
- python3-debian
- xz-utils
apt_verify: true
...