add aliases copy task to common play

This commit is contained in:
staticsafe 2020-12-01 10:30:53 -05:00
parent db53abe225
commit 3cb30d2985
3 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,3 @@
# See man 5 aliases for format
postmaster: root
root: s+cron@sadiqs.com

View File

@ -3,3 +3,5 @@
service: name=rsyslog state=restarted
- name: restart cron
service: name=cron state=restarted
- name: newaliases
shell: newaliases

View File

@ -69,3 +69,7 @@
- chrony
- name: Ensure that the periodic APT cron task clears out old kernels and does unattended security upgrades
copy: src=10periodic dest=/etc/apt/apt.conf.d/10periodic backup=yes owner=root group=root mode=0644
- name: Copy over our aliases file
copy: src=aliases dest=/etc/aliases
notify:
- newaliases