summaryrefslogtreecommitdiffstats
path: root/tasks
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2026-03-06 16:16:06 +0100
committerGuilhem Moulin <guilhem@fripost.org>2026-03-06 16:16:11 +0100
commitdf87ea4c95bb2f5a8aba06c117292dfef37ea661 (patch)
tree2252a0b4fefa324fa7e2ef968f64ac37aacee771 /tasks
parent1af347391f9f54b370dfc7395464b8ed637a79ca (diff)
Replace deprecated `ansible_$foo` with `ansible_facts[$foo]`.
Diffstat (limited to 'tasks')
-rw-r--r--tasks/mail.yml8
1 files changed, 4 insertions, 4 deletions
diff --git a/tasks/mail.yml b/tasks/mail.yml
index 8f58c8a..9c5ef5e 100644
--- a/tasks/mail.yml
+++ b/tasks/mail.yml
@@ -6,10 +6,10 @@
regexp='^{{ item.src }}{{':'}} '
line='{{ item.src }}{{':'}} {{ item.dst }}'
with_items:
- - { src: mailer-daemon, dst: 'postmaster' }
- - { src: postmaster, dst: 'root' }
- - { src: nobody, dst: 'root' }
- - { src: root, dst: 'hostmaster@{{ ansible_domain }}' }
+ - { src: mailer-daemon, dst: 'postmaster' }
+ - { src: postmaster, dst: 'root' }
+ - { src: nobody, dst: 'root' }
+ - { src: root, dst: 'hostmaster@{{ ansible_facts.domain }}' }
notify:
- Run newaliases