diff --git a/common/tasks/apticron.yml b/common/tasks/apticron.yml index 323ee72..10f77ba 100644 --- a/common/tasks/apticron.yml +++ b/common/tasks/apticron.yml @@ -16,4 +16,8 @@ owner: root group: root mode: 0644 + vars_prompt: + - name: admin_mail + prompt: "Mail of server admin" + private: no diff --git a/common/templates/etc/apticron/apticron.conf.j2 b/common/templates/etc/apticron/apticron.conf.j2 index 41d8402..e9dccad 100644 --- a/common/templates/etc/apticron/apticron.conf.j2 +++ b/common/templates/etc/apticron/apticron.conf.j2 @@ -3,4 +3,4 @@ # Set EMAIL to a space separated list of addresses which will be notified of # impending updates. By default the root account will be notified. -EMAIL="root@{{ ansible_domain }}" +EMAIL="{{ admin_mail }}"