From 22c4cbfa767b7a58af820e14224609959e31ec8a Mon Sep 17 00:00:00 2001 From: naisanzaa Date: Tue, 19 Nov 2024 01:06:26 +0800 Subject: [PATCH] [raedyup] patch state change handling and ignore errors for some tasks --- playbooks/roles/readyup/tasks/Debian-desktop.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/playbooks/roles/readyup/tasks/Debian-desktop.yml b/playbooks/roles/readyup/tasks/Debian-desktop.yml index 35dbd07c..94126751 100644 --- a/playbooks/roles/readyup/tasks/Debian-desktop.yml +++ b/playbooks/roles/readyup/tasks/Debian-desktop.yml @@ -11,6 +11,8 @@ - name: Install Missing Packages shell: apt install -f -y + register: shell + changed_when: '"Installing: 0" not in shell.stdout' become: yes - name: software-properties-common @@ -108,6 +110,7 @@ - name: python3-distutils apt: update_cache=no name=python3-distutils state=latest become: yes + ignore_errors: yes - name: OpenVPN apt: update_cache=no name=openvpn state=latest