From ff8082c94338177c80bd7a3d40317025c3f1e4fb Mon Sep 17 00:00:00 2001 From: Alex Devera <55101298+AlexDevera@users.noreply.github.com> Date: Tue, 25 Feb 2025 10:19:03 +0300 Subject: [PATCH] 1 --- update-upgrade.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/update-upgrade.yml b/update-upgrade.yml index 5633750..bad04da 100644 --- a/update-upgrade.yml +++ b/update-upgrade.yml @@ -1,4 +1,3 @@ ---- - name: Update repositories and upgrade packages on Ubuntu hosts: all become: yes @@ -6,10 +5,11 @@ - name: Update apt cache apt: update_cache: yes + cache_valid_time: 3600 # Обновлять кеш не чаще, чем раз в час - name: Upgrade all packages to the latest version apt: - upgrade: dist + full_upgrade: yes # Более надежная альтернатива `upgrade: dist` - name: Remove unnecessary packages apt: @@ -19,9 +19,9 @@ - name: Send notify to Telegram community.general.telegram: token: '5909855740:AAGLftkWmQl0XTLHLo1PcI87HHXoU7eEAGM' - api_args: + data: chat_id: 222227130 - parse_mode: "markdown" + parse_mode: "Markdown" text: "Your precious application has been deployed: https://example.com" disable_web_page_preview: true disable_notification: true \ No newline at end of file