Skip to content

Commit

Permalink
Merge branch 'release/1.4.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
thedatabaseme committed Aug 20, 2021
2 parents e2b5f87 + 3deb8ee commit 8d66d6b
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Changelog of Update Proxmox VM Playbook:

Version 1.4.0
- OpenSuse / SLES Systems are now supported for patching it with this playbook

Version 1.3.0
- You can now specify if a VM should be rebooted after an Update / Patch installation if needed (Only works for Debian / Ubuntu atm)

Expand Down
23 changes: 22 additions & 1 deletion patch_vm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,28 @@
lock_timeout: 120
become: true
delegate_to: "{{ item.vm_name }}"
when: vm_facts.ansible_facts.ansible_os_family == 'RedHat'
when: vm_facts.ansible_facts.ansible_os_family == 'RedHat'

- name: Install Prerequisite Packages for OpenSuse / SLES
package:
name:
- python-xml
- zypper
- rpm
state: present
become: true
delegate_to: "{{ item.vm_name }}"
when: vm_facts.ansible_facts.ansible_os_family == 'Suse'

- name: Update VM {{ item.vm_name }} with zypper
zypper:
name: "*"
state: latest
update_cache: yes
type: patch
become: true
delegate_to: "{{ item.vm_name }}"
when: vm_facts.ansible_facts.ansible_os_family == 'Suse'

- name: Shutdown VM {{ item.vm_name }} when it was stopped before patching
uri:
Expand Down
2 changes: 1 addition & 1 deletion update_proxmox_vm.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---

# Version 1.3.0
# Version 1.4.0

- hosts: "localhost"
vars:
Expand Down

0 comments on commit 8d66d6b

Please sign in to comment.