Skip to content

Commit 3dedbf2

Browse files
authored
Merge branch 'progmaticltd:main' into allow-apt-mirrors
2 parents 00e01b9 + e519063 commit 3dedbf2

File tree

8 files changed

+22
-5
lines changed

8 files changed

+22
-5
lines changed

roles/bootstrap/defaults/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,6 @@ base_packages:
2525
- systemd-timesyncd
2626
- unattended-upgrades
2727
- xkcdpass
28+
29+
recommended_packages:
30+
- colorize

roles/bootstrap/tasks/check/packages.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,11 @@
1111
loop_control:
1212
loop_var: pkg
1313
tags: apt
14+
15+
- name: Check that all packages are installed
16+
ansible.builtin.assert:
17+
that: ansible_facts.packages[pkg] is defined
18+
loop: '{{ recommended_packages }}'
19+
loop_control:
20+
loop_var: pkg
21+
tags: apt

roles/bootstrap/tasks/install/network.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
- name: Install unbound
44
ansible.builtin.apt:
5-
name: unbound
5+
pkg:
6+
- dns-root-data
7+
- unbound
68
state: present
79
tags: network
810

roles/bootstrap/tasks/install/packages.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,8 @@
44
ansible.builtin.apt:
55
name: '{{ base_packages }}'
66
state: present
7+
8+
- name: Install the packages absolutely required
9+
ansible.builtin.apt:
10+
name: '{{ recommended_packages }}'
11+
state: present

roles/certificates/tasks/install/pre-install-common.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
- name: Get the DNS api key
3636
no_log: '{{ hide_secrets }}'
3737
ansible.builtin.set_fact:
38-
api_key: '{{ lookup(creds.store, creds.prefix + "dns/api-key") }}'
38+
api_key: '{{ lookup(creds.store, creds.prefix + "/dns/api-key") }}'
3939
tags: preinstall
4040

4141
# LetsEncrypt will need to be accessed once the DNS server is live.

roles/certificates/vars/main.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
cert_packages:
44
- ca-certificates
5-
- colorize
65
- gnutls-bin
76
- jq
87
- lego

roles/dns-pdns/tasks/install/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
no_log: '{{ hide_secrets }}'
4343
ansible.builtin.set_fact:
4444
api_key: >-
45-
{{ lookup(creds.store, creds.prefix + "dns/api-key" +
45+
{{ lookup(creds.store, creds.prefix + "/dns/api-key" +
4646
creds.opts.create + creds.opts.system)
4747
}}
4848
tags: config

scripts/switch-domain.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ cd "$SCRIPT_PATH/../config" || exit
2626

2727
if [ ! -f "system-${domain}.yml" ]; then
2828
echo "Create the system-${domain}.yml file in config first."
29-
echo "See system-example.yml for bare minimum and defaults.yml for all possible values"
29+
echo "See system-minimal.yml for bare minimum and defaults.yml for all possible values"
3030
exit 2;
3131
fi
3232

0 commit comments

Comments
 (0)