From 69ce9ec9cd8df91dd08eb4f9434e596d720816e9 Mon Sep 17 00:00:00 2001 From: lilyeyes Date: Tue, 19 Sep 2023 11:25:56 +0800 Subject: [PATCH] Add zypper patch system before test start on PC Fully patch system before test start on public cloud qesap-deployment test cases TEAM-8437 - [qesap-deployment] Fully patch system before test start --- ansible/playbooks/fully-patch-system.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 ansible/playbooks/fully-patch-system.yaml diff --git a/ansible/playbooks/fully-patch-system.yaml b/ansible/playbooks/fully-patch-system.yaml new file mode 100644 index 00000000..24c4b717 --- /dev/null +++ b/ansible/playbooks/fully-patch-system.yaml @@ -0,0 +1,20 @@ +--- +- hosts: all + remote_user: cloudadmin + become: true + become_user: root + vars: + use_reboottimeout: 600 + + tasks: + # Fully patch system + - name: Apply all available patches + community.general.zypper: + name: '*' + state: latest + type: patch + + handlers: + - name: Reboot + ansible.builtin.reboot: + reboot_timeout: "{{ use_reboottimeout | int }}"