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