2015-11-18 23:02:49 +00:00
|
|
|
|
2017-12-21 03:03:02 +00:00
|
|
|
- import_tasks: addswap.yml
|
2015-11-18 23:02:49 +00:00
|
|
|
|
2021-12-02 20:21:46 +00:00
|
|
|
# Temporary workaround for outdated vagrant box base
|
|
|
|
- name: upgrade all packages
|
|
|
|
yum:
|
|
|
|
name: '*'
|
|
|
|
state: latest
|
|
|
|
update_cache: yes
|
|
|
|
become: yes
|
|
|
|
|
2015-11-18 23:02:49 +00:00
|
|
|
- name: install system tools
|
2017-12-21 03:47:20 +00:00
|
|
|
yum:
|
2020-05-22 16:28:31 +00:00
|
|
|
name: ['rsync', 'strace', 'nmap', 'yum-utils', 'sendmail',
|
|
|
|
'nfs-utils', 'vim-enhanced', 'tmpwatch', 'ntpdate',
|
|
|
|
'at', 'cronie-noanacron', 'ruby', 'mailx', 'crontabs',
|
|
|
|
'logrotate', 'which', 'net-tools', 'lsof', 'screen',
|
|
|
|
'mlocate']
|
2016-07-14 03:15:07 +00:00
|
|
|
become: yes
|
2015-11-30 15:08:24 +00:00
|
|
|
|
2018-03-20 17:04:30 +00:00
|
|
|
- name: manage sendmail service
|
|
|
|
service:
|
2017-12-21 03:47:20 +00:00
|
|
|
name: sendmail
|
|
|
|
state: started
|
|
|
|
enabled: yes
|
2016-07-14 03:15:07 +00:00
|
|
|
become: yes
|
2015-11-30 15:08:24 +00:00
|
|
|
|
|
|
|
- name: set up redmine user mail aliases
|
2017-12-21 03:47:20 +00:00
|
|
|
lineinfile:
|
|
|
|
dest: /etc/aliases
|
|
|
|
regexp: "^{{ redmine_owner }}"
|
|
|
|
line: "{{ redmine_owner }}: {{ redmine_mail_alias }}"
|
2016-07-14 03:15:07 +00:00
|
|
|
become: yes
|
2015-11-30 15:08:24 +00:00
|
|
|
notify: rebuild mail aliases
|
2015-11-18 23:02:49 +00:00
|
|
|
|