Skip to content

Commit

Permalink
Merge pull request #370 from diffway/move_colorize_package
Browse files Browse the repository at this point in the history
Move 'colorize' package to 'bootstrap' role
  • Loading branch information
arodier authored Apr 6, 2024
2 parents 4aeec09 + af1e93f commit ec924d8
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
3 changes: 3 additions & 0 deletions roles/bootstrap/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ base_packages:
- systemd-timesyncd
- unattended-upgrades
- xkcdpass

recommended_packages:
- colorize
8 changes: 8 additions & 0 deletions roles/bootstrap/tasks/check/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,11 @@
loop_control:
loop_var: pkg
tags: apt

- name: Check that all packages are installed
ansible.builtin.assert:
that: ansible_facts.packages[pkg] is defined
loop: '{{ recommended_packages }}'
loop_control:
loop_var: pkg
tags: apt
5 changes: 5 additions & 0 deletions roles/bootstrap/tasks/install/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@
ansible.builtin.apt:
name: '{{ base_packages }}'
state: present

- name: Install the packages absolutely required
ansible.builtin.apt:
name: '{{ recommended_packages }}'
state: present
1 change: 0 additions & 1 deletion roles/certificates/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

cert_packages:
- ca-certificates
- colorize
- gnutls-bin
- jq
- lego
Expand Down

0 comments on commit ec924d8

Please sign in to comment.