replaced fixed hostname with variable
All checks were successful
/ checkout (push) Successful in 2m0s

This commit is contained in:
Stefan Le Breton 2025-06-21 17:30:41 +02:00
parent 0d72bd434d
commit fee8771c77

View file

@ -86,7 +86,7 @@
- name: notify mail sender - name: notify mail sender
ansible.builtin.lineinfile: ansible.builtin.lineinfile:
dest: /etc/apt/apt.conf.d/50unattended-upgrades dest: /etc/apt/apt.conf.d/50unattended-upgrades
line: "Unattended-Upgrade::Sender \"Unattended-upgrades service02 <admin@anyops.de>\";" line: "Unattended-Upgrade::Sender \"Unattended-upgrades {{ inventory_hostname }} <admin@anyops.de>\";"
search_string: "^Unattended-Upgrade::Sender" search_string: "^Unattended-Upgrade::Sender"
state: present state: present