29 lines
810 B
YAML
29 lines
810 B
YAML
#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"
|