From fee8771c7740a5e7e98de6ac2e7a01ba3fc0ca55 Mon Sep 17 00:00:00 2001 From: Stefan Le Breton Date: Sat, 21 Jun 2025 17:30:41 +0200 Subject: [PATCH] replaced fixed hostname with variable --- roles/anyops_autoupgrade/tasks/main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/anyops_autoupgrade/tasks/main.yaml b/roles/anyops_autoupgrade/tasks/main.yaml index 7743bf2..b8369cc 100644 --- a/roles/anyops_autoupgrade/tasks/main.yaml +++ b/roles/anyops_autoupgrade/tasks/main.yaml @@ -86,7 +86,7 @@ - name: notify mail sender ansible.builtin.lineinfile: dest: /etc/apt/apt.conf.d/50unattended-upgrades - line: "Unattended-Upgrade::Sender \"Unattended-upgrades service02 \";" + line: "Unattended-Upgrade::Sender \"Unattended-upgrades {{ inventory_hostname }} \";" search_string: "^Unattended-Upgrade::Sender" state: present