playbook_del-updates/updates.yml

33 lines
856 B
YAML

---
###########################################################################
#
# This is the top level playbook to perform a system update for the target
# host.
#
# This playbook will first call the 'update_cache' role, and will then call
# the 'chk_upgrades' role to display what packages are waiting for update.
# It then calls the 'upgrade_pkgs' role to perform the actual package
# upgrade.
#
###########################################################################
#
# This playbook can be run using the following command line;
#
# ansible-playbook -i <inventory file | IP,> updates.yml
#
# ie,
# ansible-playbook -i 192.168.1.123, updates.yml
#
###########################################################################
- hosts: all
gather_facts: true
user: root
roles:
- update_cache
- chk_upgrades
- upgrade_pkgs
# EOF