Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0eade70b56 |
No files matched your search
@@ -1,7 +0,0 @@
|
|||||||
---
|
|
||||||
minor_changes:
|
|
||||||
- >-
|
|
||||||
docker, system_baseline - The install tasks that only use the distribution's sources (docker's
|
|
||||||
prerequisites, system_baseline's packages) refresh the APT cache only when it is older than an
|
|
||||||
hour; before, every run refreshed it. Installs from a role's own APT source still refresh it on
|
|
||||||
every run.
|
|
||||||
@@ -7,7 +7,6 @@
|
|||||||
- curl
|
- curl
|
||||||
state: present
|
state: present
|
||||||
update_cache: true
|
update_cache: true
|
||||||
cache_valid_time: 3600
|
|
||||||
tags: [docker, install]
|
tags: [docker, install]
|
||||||
|
|
||||||
- name: Ensure APT keyrings directory exists
|
- name: Ensure APT keyrings directory exists
|
||||||
@@ -41,7 +40,6 @@
|
|||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
name: "{{ docker_packages }}"
|
name: "{{ docker_packages }}"
|
||||||
state: present
|
state: present
|
||||||
# Always refreshed: a run that wrote the source line but failed to fetch its lists heals here.
|
|
||||||
update_cache: true
|
update_cache: true
|
||||||
register: __docker_packages
|
register: __docker_packages
|
||||||
notify: Restart docker
|
notify: Restart docker
|
||||||
|
|||||||
@@ -159,7 +159,6 @@ system_baseline_extra_remove_packages: [telnet]
|
|||||||
```
|
```
|
||||||
|
|
||||||
- Each item is a Debian package name: lower-case letters, digits, `+`, `-` and `.`, two or more characters, starting with a letter or digit and not ending in `-` (apt reads a trailing minus as a removal). Anything else stops the run. Duplicates of the profile list are harmless.
|
- Each item is a Debian package name: lower-case letters, digits, `+`, `-` and `.`, two or more characters, starting with a letter or digit and not ending in `-` (apt reads a trailing minus as a removal). Anything else stops the run. Duplicates of the profile list are harmless.
|
||||||
- The role does not refresh an APT cache younger than an hour, so a package from a source you add just before the role (`ansible.builtin.deb822_repository` does not refresh) needs your own cache refresh first.
|
|
||||||
- An extra counts wherever the role looks for a package in the list: an extra `tmux` enables the tmux snippet and an extra `unattended-upgrades` the unattended-upgrades tasks, as a profile package does.
|
- An extra counts wherever the role looks for a package in the list: an extra `tmux` enables the tmux snippet and an extra `unattended-upgrades` the unattended-upgrades tasks, as a profile package does.
|
||||||
- A package that one input installs and another purges stops the run before any change: `system_baseline_extra_packages` against `system_baseline_remove_packages` or `system_baseline_extra_remove_packages`, and `system_baseline_extra_remove_packages` against `system_baseline_essential_packages`. The resolved lists are not checked against each other, so a consumer's own overlap there behaves as before.
|
- A package that one input installs and another purges stops the run before any change: `system_baseline_extra_packages` against `system_baseline_remove_packages` or `system_baseline_extra_remove_packages`, and `system_baseline_extra_remove_packages` against `system_baseline_essential_packages`. The resolved lists are not checked against each other, so a consumer's own overlap there behaves as before.
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
name: "{{ __system_baseline_install_packages }}"
|
name: "{{ __system_baseline_install_packages }}"
|
||||||
state: present
|
state: present
|
||||||
update_cache: true
|
update_cache: true
|
||||||
cache_valid_time: 3600
|
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
- name: Gather installed packages
|
- name: Gather installed packages
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
---
|
||||||
|
# The base image's docker-clean deletes each downloaded .deb after an install, so verify's update and
|
||||||
|
# reinstalls would fetch tailscale again; without it apt reuses the cached .deb after checking its hash.
|
||||||
|
- name: Prepare
|
||||||
|
hosts: all
|
||||||
|
gather_facts: false
|
||||||
|
tasks:
|
||||||
|
- name: Keep downloaded packages in the apt cache
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: /etc/apt/apt.conf.d/docker-clean
|
||||||
|
state: absent
|
||||||
Reference in new issue
Block a user