first commit

This commit is contained in:
2026-01-30 14:40:48 -05:00
commit 2301a87a6e
4 changed files with 240 additions and 0 deletions

28
playbooks/update.yaml Normal file
View File

@@ -0,0 +1,28 @@
#ansible-playbook -i ../inventories/inventory.proxmox.yml update.yaml -kK
- name: Update all VMs
hosts: proxmox_all_running
tasks:
# - name: Run Agent Uninstall
# include_tasks: zabbix/zabbixAgentUninstall.yml
- name: Update apt cache
become: true
apt:
update_cache: yes
cache_valid_time: 3600
- name: Upgrade all apt packages
apt:
force_apt_get: yes
upgrade: dist
become: yes
# - name: Install Zabbix Agent on servers
# hosts: proxmox_all_running
# become: yes
# tasks:
# - name: Run Debian Agent Install
# include_tasks: zabbix/zabbixDebianAgentInstall.yml
# when: ansible_distribution == "Debian"
# - name: Run Ubuntu Agent Install
# include_tasks: zabbix/zabbixUbuntuAgentInstall.yml
# when: ansible_distribution == "Ubuntu"