This repository has been archived by the owner on Jun 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
14 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,6 +55,20 @@ Additionaly unattended-upgrades support two macros (variables), derived from `/e | |
* `${distro_id}` – Installed distribution name, e.g. `Debian` or `Ubuntu`. | ||
* `${distro_codename}` – Installed codename, e.g. `jessie` or `trusty`. | ||
|
||
## Role Usage Example | ||
|
||
```yaml | ||
- hosts: all | ||
roles: | ||
- role: jnv.unattended-upgrades | ||
unattended_origins_patterns: | ||
- 'origin=Ubuntu,archive=${distro_codename}-security' | ||
- 'o=Ubuntu,a=${distro_codename}-updates' | ||
unattended_package_blacklist: [cowsay, vim] | ||
unattended_mail: '[email protected]' | ||
``` | ||
### Patterns Examples | ||
By default, only security updates are allowed for both Ubuntu and Debian. You can add more patterns to allow unattended-updates install more packages automatically, however be aware that automated major updates may potentially break your system. | ||
|
@@ -82,19 +96,6 @@ unattended_origins_patterns: | |
- 'o=Ubuntu,a=${distro_codename}-proposed-updates' | ||
``` | ||
## Role Usage Example | ||
```yaml | ||
- hosts: all | ||
roles: | ||
- role: jnv.unattended-upgrades | ||
unattended_origins_patterns: | ||
- 'origin=Ubuntu,archive=${distro_codename}-security' | ||
- 'o=Ubuntu,a=${distro_codename}-updates' | ||
unattended_package_blacklist: [cowsay, vim] | ||
unattended_mail: '[email protected]' | ||
``` | ||
## License | ||
GPLv2 |