Ansible-Playbooks/get-upgrades.yaml aktualisiert
This commit is contained in:
@@ -9,13 +9,9 @@
|
||||
ansible.builtin.shell:
|
||||
cmd: apt list --upgradable 2>/dev/null
|
||||
|
||||
- name: Get current date like dd-mm-yyyy
|
||||
ansible.builtin.shell:
|
||||
cmd: $date = date +%d-%m-%Y
|
||||
|
||||
- name: Install available Updates and write output log into ~\update_logs\update_log_($date)
|
||||
ansible.builtin.shell:
|
||||
cmd: apt upgrade -y > ~\updates_logs\update_log_$date
|
||||
cmd: apt upgrade -y > "~\updates_logs\update_log_$(date +"%Y_%m_%d_%I_%M_%p")"
|
||||
|
||||
- name: Update Zabbix Text file
|
||||
ansible.builtin.shell:
|
||||
|
||||
Reference in New Issue
Block a user