ansible-roles/evolinux-base/handlers/main.yml

80 lines
1.3 KiB
YAML
Raw Normal View History

---
- 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
2017-05-19 22:30:51 +02:00
args:
warn: no
- name: remount /var
command: mount -o remount /var
2017-05-19 22:30:51 +02:00
args:
warn: no
- 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
2016-12-21 14:53:25 +01:00
2017-07-12 10:23:21 +02:00
- name: restart cron
service:
name: cron
state: restarted
2016-12-21 14:53:25 +01:00
- name: newaliases
command: newaliases
changed_when: False
2017-01-04 10:21:27 +01:00
- name: reload sshd
service:
2017-03-08 16:33:23 +01:00
name: ssh
2017-01-04 10:21:27 +01:00
state: reloaded
- name: reload postfix
service:
name: postfix
state: reloaded
2022-04-11 16:34:39 +02:00
- name: restart log2mail
service:
name: log2mail
state: restarted