From 34354d4ea6b7cb95c9998afad6e3cbd98bfa84ad Mon Sep 17 00:00:00 2001 From: hygienic-books Date: Thu, 3 Apr 2025 03:56:59 +0200 Subject: [PATCH] fix(role): Unify var names --- README.md | 8 ++++++++ tasks/maintenance-unattended-upgrades.yml | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a00ca89..9aa32c9 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,8 @@ Currently deals exclusively with Linux machines. # Role Variables +## Defined + Per [defaults/main.yml](defaults/main.yml) this role is equipped to deal with Arch Linux and Debian. - `packages_linux_common_all_families`: Place package names in this list that are identical across all Linux flavors. @@ -42,6 +44,12 @@ Per [defaults/main.yml](defaults/main.yml) this role is equipped to deal with Ar - 'paccache-hook' ``` +## Undefined + +From somewhere outside of this role the role expects the following variable to be set. This is used in more than one role, we suggest to define this as a host or group var. + +- `landscape_quico__e_mail_default_recipient_addr_spec`: An e-mail address such as `alerting@example.com` rendered as an [RFC 2822](https://datatracker.ietf.org/doc/html/rfc2822#section-3.4.1) `addr-spec` string. This is the recipient e-mail address we'll use for system-generated e-mails. + # Dependencies This role depends on the [kewlfft.aur](https://galaxy.ansible.com/ui/repo/published/kewlfft/aur/) Ansible collection to install packages from Arch User Repository on Arch Linux target machines. diff --git a/tasks/maintenance-unattended-upgrades.yml b/tasks/maintenance-unattended-upgrades.yml index 11c7208..9116134 100644 --- a/tasks/maintenance-unattended-upgrades.yml +++ b/tasks/maintenance-unattended-upgrades.yml @@ -27,6 +27,6 @@ path: '/etc/aliases' insertafter: 'EOF' regexp: '^root:.*' - line: 'root: {{ e_mail_notifications_addressee }}' + line: 'root: {{ landscape_quico__e_mail_default_recipient_addr_spec }}' notify: - 'Ensure that a Mail Transfer Agent is running with newest config'