ansible-roles/evolinux-base/handlers/main.yml
Patrick Marchand 1c6fdbf85a
All checks were successful
gitea/ansible-roles/pipeline/head This commit looks good
Remove warning ignores as they are depreciated
Will cause a hard fail in ansible 2.14, so better get rid of them now.
There is no alternative, but the ansible warnings for those modules
are not hard failures anyways.
2022-12-22 11:32:32 -05:00

76 lines
1.2 KiB
YAML

---
- name: dpkg-reconfigure-debconf
command: dpkg-reconfigure --frontend noninteractive debconf
- name: dpkg-reconfigure-locales
command: dpkg-reconfigure --frontend noninteractive locales
- name: dpkg-reconfigure-apt
command: dpkg-reconfigure --frontend noninteractive apt-listchanges
# - name: debconf-set-selections
# command: debconf-set-selections /root/debconf-preseed
- name: apt update
apt:
update_cache: yes
- name: restart rsyslog
service:
name: rsyslog
state: restarted
- name: remount /home
command: mount -o remount /home
- name: remount /var
command: mount -o remount /var
- name: restart nginx
service:
name: nginx
state: restarted
- name: reload nginx
service:
name: nginx
state: reloaded
- name: restart apache
service:
name: apache2
state: restarted
- name: reload apache
service:
name: apache2
state: reloaded
- name: restart cron
service:
name: cron
state: restarted
- name: newaliases
command: newaliases
changed_when: False
- name: reload sshd
service:
name: ssh
state: reloaded
- name: reload postfix
service:
name: postfix
state: reloaded
- name: restart log2mail
service:
name: log2mail
state: restarted