-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.yml
291 lines (291 loc) · 7.84 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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
# Copyright 2019-2025 Chris Croome
#
# This file is part of the Webarchitects Ansible role.
#
# The Webarchitects 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 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 Ansible role. If not, see <https://www.gnu.org/licenses/>.
---
# Run the tasks in this role
ans: false
# Ansible collections required
ans_cols:
- name: ansible.posix
url: https://github.com/ansible-collections/ansible.posix
version: 2.0.0 # ansible.posix
- name: community.docker
url: https://github.com/ansible-collections/community.docker
version: 4.3.0 # community.docker
- name: community.crypto
url: https://github.com/ansible-collections/community.crypto
version: 2.23.0 # community.crypto
- name: community.general
url: https://github.com/ansible-collections/community.general
version: 10.2.0 # community.general
- name: community.mysql
url: https://github.com/ansible-collections/community.mysql
version: 3.11.0 # community.mysql
- name: community.postgresql
url: https://github.com/ansible-collections/community.postgresql
version: 3.9.1 # community.postgresql
- name: community.rabbitmq
url: https://github.com/ansible-collections/community.rabbitmq
version: 1.4.0 # community.rabbitmq
ans_distro_check: true
ans_downgrade: false
ans_pkgs:
- name: bullseye
pkgs_present:
- ansible
- ansible-lint
- git
- jc
- jo
- libpq-dev
- pipx
- postgresql-client
- postgresql-common
- procps
- python3-apt
- python3-argcomplete
- python3-debian
- python3-dnspython
- python3-commonmark
- python3-jmespath
- python3-lxml
- python3-mysqldb
- python3-netaddr
- python3-pip
- python3-psycopg2
- python3-pymysql
- python3-resolvelib
- python3-ruamel.yaml
- python3-setuptools
- python3-venv
# Note, nothing is yet done with the pkgs_absent list
pkgs_absent: []
- name: bookworm
pkgs_present:
- ansible
- ansible-lint
- git
- jc
- jo
- libpq-dev
- pipx
- postgresql-client
- postgresql-common
- procps
- python3-apt
- python3-argcomplete
- python3-debian
- python3-dnspython
- python3-commonmark
- python3-jmespath
- python3-lxml
- python3-mysqldb
- python3-netaddr
- python3-pip
- python3-psycopg
- python3-pymysql
- python3-resolvelib
- python3-ruamel.yaml
- python3-setuptools
- python3-venv
# Note, nothing is yet done with the pkgs_absent list
pkgs_absent: []
- name: trixie
pkgs_present:
# The ansible package is not currently in Trixie
# https://packages.debian.org/trixie/ansible
# - ansible
- ansible-core
- ansible-lint
- git
# jc is currently missing
# https://packages.debian.org/trixie/jc
# - jc
- jo
- libpq-dev
- pipx
- postgresql-client
- postgresql-common
- procps
- python3-apt
- python3-argcomplete
- python3-debian
- python3-dnspython
- python3-commonmark
- python3-jmespath
- python3-lxml
- python3-mysqldb
- python3-netaddr
- python3-pip
- python3-psycopg
- python3-pymysql
- python3-resolvelib
- python3-ruamel.yaml
- python3-setuptools
- python3-venv
# Note, nothing is yet done with the pkgs_absent list
pkgs_absent: []
- name: jammy
pkgs_present:
- ansible
- ansible-lint
- git
- jc
- jo
- pipx
- postgresql-client
- procps
- python3-apt
- python3-argcomplete
- python3-debian
- python3-dnspython
- python3-commonmark
- python3-jmespath
- python3-lxml
- python3-mysqldb
- python3-netaddr
- python3-pip
- python3-psycopg2
- python3-pymysql
- python3-resolvelib
- python3-ruamel.yaml
- python3-setuptools
- python3-venv
# Note, nothing is yet done with the pkgs_absent list
pkgs_absent: []
- name: noble
pkgs_present:
- ansible
- ansible-lint
- git
- jc
- jo
- pipx
- postgresql-client
- procps
- python3-apt
- python3-argcomplete
- python3-debian
- python3-dnspython
- python3-commonmark
- python3-jmespath
- python3-lxml
- python3-mysqldb
- python3-netaddr
- python3-pip
- python3-psycopg2
- python3-pymysql
- python3-resolvelib
- python3-ruamel.yaml
- python3-setuptools
- python3-venv
# Note, nothing is yet done with the pkgs_absent list
pkgs_absent: []
# Python PyPI packages required
ans_pypi_pkgs:
- name: ansible
url: https://pypi.org/pypi/ansible
# TODO switch to 11.x when Debian Buster no longer needs to be supported
# https://packages.debian.org/buster/python3
version: 10.7.0 # ansible
- name: ansible-core
url: https://pypi.org/pypi/ansible-core
venv: ansible
# TODO switch to 2.18.x when Debian Buster no longer needs to be supported
# https://packages.debian.org/buster/python3
version: 2.17.7 # ansible-core
- name: ansible-lint
url: https://pypi.org/pypi/ansible-lint
venv: ansible
version: latest
- name: dnspython
type: lib
url: https://pypi.org/pypi/dnspython
venv: ansible
version: latest
- name: jc
url: https://pypi.org/pypi/jc
venv: ansible
version: latest
- name: jinjanator
url: https://pypi.org/pypi/jinjanator
venv: ansible
version: latest
- name: jinjanator-plugin-ansible
url: https://pypi.org/pypi/jinjanator-plugin-ansible
venv: ansible
version: latest
- name: jinja2-ansible-filters
type: lib
url: https://pypi.org/pypi/jinja2-ansible-filters
venv: ansible
version: latest
- name: j2lint
url: https://pypi.org/pypi/j2lint
venv: ansible
version: latest
- name: jmespath
url: https://pypi.org/pypi/jmespath
venv: ansible
version: latest
- name: molecule
url: https://pypi.org/pypi/molecule
venv: ansible
version: latest
- name: lxml
type: lib
url: https://pypi.org/pypi/lxml
venv: ansible
version: latest
- name: molecule-plugins
extras:
- docker
url: https://pypi.org/pypi/molecule-plugins
venv: ansible
version: latest
- name: netaddr
type: lib
url: https://pypi.org/pypi/netaddr
venv: ansible
version: latest
- name: psycopg
type: lib
url: https://pypi.org/pypi/psycopg
venv: ansible
version: latest
- name: pymarkdownlnt
url: https://pypi.org/pypi/pymarkdownlnt
venv: ansible
version: latest
- name: pymysql
type: lib
url: https://pypi.org/pypi/pymysql
venv: ansible
version: latest
- name: python-debian
type: lib
url: https://pypi.org/pypi/python-debian
venv: ansible
version: latest
- name: yamllint
url: https://pypi.org/pypi/yamllint
venv: ansible
version: latest
ans_pipx_cmd: false
ans_pipx_path: /usr/bin/pipx
ans_pipx_root_env:
PIPX_BIN_DIR: /usr/local/bin
PIPX_HOME: /opt/pipx
ans_pipx_user_env:
PIPX_BIN_DIR: "{{ ans_user_bin }}"
PIPX_HOME: "{{ ansible_facts.env.HOME }}/.local/pipx"
ans_python_path: /usr/bin/python3
ans_user_bin: "{{ ansible_facts.env.HOME }}/.local/bin"
ans_verify: true
...