kayobe/ansible/host-package-update.yml
Mark Goddard 491ed919d6 Add commands to update packages on hosts
Just performs a yum update.

Change-Id: I4cdc23a3e491c5a2f92e8beeb7eaebf2df818df3
Story: 2003305
Task: 24257
2018-08-23 13:40:43 +01:00

17 lines
502 B
YAML

---
- name: Update host packages
hosts: 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
yum:
name: "{{ host_package_update_packages }}"
security: "{{ host_package_update_security | bool }}"
state: latest
when: ansible_os_family == 'RedHat'
become: true