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