From f5782ad36119e70e3c21bee637c7bf98c0b368ca Mon Sep 17 00:00:00 2001 From: Timo Makinen Date: Thu, 18 Mar 2021 22:27:05 +0000 Subject: [PATCH] apache: Change admin contact address --- roles/apache/tasks/main.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/roles/apache/tasks/main.yml b/roles/apache/tasks/main.yml index d6dd03c..5330356 100644 --- a/roles/apache/tasks/main.yml +++ b/roles/apache/tasks/main.yml @@ -17,6 +17,13 @@ - "IncludeOptional conf.d/*.conf" notify: restart apache +- name: set server admin address + lineinfile: + path: /etc/httpd/conf/httpd.conf + line: "ServerAdmin webmaster@{{ mail_domain }}" + regexp: "#?ServerAdmin .*" + notify: restart apache + - name: include local configs lineinfile: path: /etc/httpd/conf/httpd.conf