evolinux-base: reboot the server if the Cloud kernel has been installed
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend |:-:|:-:|:-:|:-:|:-: |2626|10|2616|5|:-1: Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/323//ansiblelint">Evolix » ansible-roles » unstable #323</a>
gitea/ansible-roles/pipeline/head This commit looks good

This commit is contained in:
Jérémy Lecour 2023-08-18 12:09:56 +02:00 committed by Jérémy Lecour
parent 67c6167474
commit feba74c469
Signed by: jlecour
SSH key fingerprint: SHA256:h+5LgHRKwN9lS0SsdVR5yZPeFlJE4Mt+8UtL4CcP8dY
2 changed files with 22 additions and 12 deletions

View file

@ -14,27 +14,28 @@ The **patch** part changes is incremented if multiple releases happen the same m
### Added
* apt: Disable NonFreeFirmware warning for VM on Debian 12+
* bind: Add reload-zone helper
* docker-host: added var for user namespace setting
* docker-host: added var for user namespace setting
* dovecot: add Munin plugins dovecot1 and dovecot_stats (patched)
* dovecot: add Munin plugins dovecot1 and dovecot_stats (patched)
* dovecot: fix old_stats plugin for Dovecot 2.3.
* evolinux: Install HPE Agentless Management Service (amsd)
* dovecot: fix old_stats plugin for Dovecot 2.3.
* evocheck: add support for Debian >= 12 splitted SSH configuration
* evolinux-base: add splitted SSH configuration for Debian >= 12
* evolinux-base: configure bashrc for all users
* evolinux-base: New variable "evolinux_system_include_ntpd" to chose wether or not to include ntpd role
* evolinux-base: reboot the server if the Cloud kernel has been installed
* evolinux-users: add splitted SSH configuration for Debian >= 12
* evolinux: Install HPE Agentless Management Service (amsd)
* fail2ban: add default variable fail2ban_dbpurgeage_default
* fail2ban: add default variable fail2ban_dbpurgeage_default
* fail2ban: add variable fail2ban_sshd_port to configure sshd port
* nagios-nrpe: add a NRPE check-local command with completion.
* policy_pam: New role allowing to manage password policy with pam_pwquality & pam_pwhistory
* userlogrotate: rotate also php.log.
* userlogrotate: new version, with separate conf file
* docker-host: added var for user namespace setting
* dovecot: fix old_stats plugin for Dovecot 2.3.
* dovecot: add Munin plugins dovecot1 and dovecot_stats (patched)
* fail2ban: add default variable fail2ban_dbpurgeage_default
* userlogrotate: add a userlogpurge script disabled by default
* evolinux-base: configure bashrc for all users
* bind: Add reload-zone helper
* evolinux-base: add splitted SSH configuration for Debian >= 12
* evolinux-users: add splitted SSH configuration for Debian >= 12
* evocheck: add support for Debian >= 12 splitted SSH configuration
* userlogrotate: new version, with separate conf file
* userlogrotate: rotate also php.log.
### Changed

View file

@ -4,6 +4,7 @@
ansible.builtin.apt:
name: "linux-image-cloud-amd64"
state: present
register: _use_cloud_kernel
when:
- ansible_machine == "x86_64"
- ansible_virtualization_role == "guest"
@ -17,6 +18,14 @@
- ansible_machine == "x86_64"
- ansible_virtualization_role == "guest"
- evolinux_kernel_cloud_auto | bool
- name: "Reboot the server to enable the new kernel"
ansible.builtin.reboot:
reboot_timeout: 600
search_paths: ['/lib/molly-guard', '/sbin']
when:
- _use_cloud_kernel | changed
- evolinux_kernel_cloud_reboot | bool
- name: Reboot after panic
ansible.posix.sysctl: