Patrick Marchand
1c6fdbf85a
All checks were successful
gitea/ansible-roles/pipeline/head This commit looks good
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.
76 lines
1.2 KiB
YAML
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
|
|
|