kayobe/ansible/host-package-update.yml
Pierre Riteau eac1702b84 Fix implementation of kayobe seed hypervisor host package update
Change-Id: Ib869ae5146948abcb11eb20691ccc2311db24bb1
Story: 2008458
Task: 41485
2020-12-21 10:29:41 +01:00

17 lines
518 B
YAML

---
- name: Update host packages
hosts: seed-hypervisor:seed:overcloud
vars:
# Optionally set this to a list of packages to update. Default behaviour is
# to update all packages.
host_package_update_packages: "*"
host_package_update_security: false
tasks:
- name: Update host packages
dnf:
name: "{{ host_package_update_packages }}"
security: "{{ host_package_update_security | bool }}"
state: latest
when: ansible_os_family == 'RedHat'
become: true