Merge branch 'main' into ci/432-two-lanes
This commit is contained in:
commit
040dd9fbf2
3 files changed
+9
-4
No files matched your search
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
trivial:
|
||||||
|
- >-
|
||||||
|
system_baseline - The registered results of the unattended-upgrades check and the reboot-required
|
||||||
|
check carry the internal ``__system_baseline_`` prefix.
|
||||||
@@ -9,11 +9,11 @@
|
|||||||
- name: Check if reboot is required (Debian)
|
- name: Check if reboot is required (Debian)
|
||||||
ansible.builtin.stat:
|
ansible.builtin.stat:
|
||||||
path: /var/run/reboot-required
|
path: /var/run/reboot-required
|
||||||
register: system_baseline_reboot_required_file
|
register: __system_baseline_reboot_required_file
|
||||||
|
|
||||||
- name: Set system_baseline_reboot_required fact
|
- name: Set system_baseline_reboot_required fact
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
system_baseline_reboot_required: "{{ system_baseline_reboot_required_file.stat.exists }}"
|
system_baseline_reboot_required: "{{ __system_baseline_reboot_required_file.stat.exists }}"
|
||||||
|
|
||||||
- name: Reboot the server if required
|
- name: Reboot the server if required
|
||||||
ansible.builtin.reboot:
|
ansible.builtin.reboot:
|
||||||
|
|||||||
@@ -60,6 +60,6 @@
|
|||||||
- name: Validate unattended-upgrades config
|
- name: Validate unattended-upgrades config
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.command: unattended-upgrades --dry-run --debug
|
ansible.builtin.command: unattended-upgrades --dry-run --debug
|
||||||
register: system_baseline_unattended_check
|
register: __system_baseline_unattended_check
|
||||||
changed_when: false
|
changed_when: false
|
||||||
failed_when: system_baseline_unattended_check.rc != 0
|
failed_when: __system_baseline_unattended_check.rc != 0
|
||||||
Reference in new issue
Block a user