From edc2f0e046d6fd2f5df279b1c6c27fc36dd5a8d2 Mon Sep 17 00:00:00 2001 From: Spencer Krum Date: Tue, 3 May 2016 14:42:35 -0700 Subject: [PATCH] Playbook to run upgrades This can be used to patch-on-demand software after security vulnerabilities. Change-Id: I18b85de45c6790cea259d7c639b3052d0cbffdac --- playbooks/attended_upgrades.yml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 playbooks/attended_upgrades.yml diff --git a/playbooks/attended_upgrades.yml b/playbooks/attended_upgrades.yml new file mode 100644 index 0000000000..ea1a433e8b --- /dev/null +++ b/playbooks/attended_upgrades.yml @@ -0,0 +1,6 @@ +- hosts: all + gather_facts: true + tasks: + - name: run unattended upgrades + shell: apt-get update && unattended-upgrade + when: ansible_os_family == "Debian"