File tree 4 files changed +15
-8
lines changed
4 files changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,6 @@ docker_user:
50
50
authorized_keys :
51
51
- public_key : " ssh-ed25519 AAAAC3NzaC1anotherfakekeyIMVIzwQXBzxxD9b8Erd1FKVvu dockeruser"
52
52
53
- pip_packages :
54
- - jsondiff
55
- - pyyaml
53
+ common_additional_packages :
54
+ - python3- jsondiff
55
+ - python3-yaml
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ postfix_hostname: "{{ inventory_hostname }}"
37
37
# Install Packages Configuration
38
38
# ##########################################
39
39
40
- # Common packages to install
40
+ # Base packages that will always be installed
41
41
common_installed_packages :
42
42
- cron
43
43
- curl
@@ -58,8 +58,12 @@ common_installed_packages:
58
58
- wget
59
59
- zip
60
60
61
- # PIP - Python Packages (examples below if you need them)
61
+ # Additional packages that users can define
62
+ common_additional_packages :
63
+ - python3-jsondiff
64
+ - python3-yaml
62
65
66
+ # PIP - Python Packages (examples below if you need them)
63
67
# pip_packages:
64
68
# - jsondiff
65
69
# - pyyaml
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ postfix_hostname: "{{ inventory_hostname }}"
26
26
# Install Packages Configuration
27
27
# ##########################################
28
28
29
- # Common packages to install
29
+ # Base packages that will always be installed
30
30
common_installed_packages :
31
31
- cron
32
32
- curl
@@ -47,6 +47,9 @@ common_installed_packages:
47
47
- wget
48
48
- zip
49
49
50
+ # Additional packages that users can define
51
+ common_additional_packages : []
52
+
50
53
# PIP - Python Packages (examples below if you need them)
51
54
52
55
# pip_packages:
Original file line number Diff line number Diff line change 1
1
---
2
2
- name : Install latest versions of common packages.
3
3
ansible.builtin.apt :
4
- name : " {{ common_installed_packages }}"
4
+ name : " {{ common_installed_packages + common_additional_packages }}"
5
5
state : latest
6
6
update_cache : yes
7
7
8
- - name : Install Python packages (if defined).
8
+ - name : Install Python PIP packages (if defined).
9
9
ansible.builtin.pip :
10
10
name : " {{ pip_packages }}"
11
11
state : latest
You can’t perform that action at this time.
0 commit comments