1
This commit is contained in:
parent
1bdad58eb7
commit
ff8082c943
1 changed files with 4 additions and 4 deletions
|
@ -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
|
Loading…
Reference in a new issue