From 2eca41928af77bb070867f7bb236eaf8068a7a6e Mon Sep 17 00:00:00 2001 From: Chris Hines <chris.hines@monash.edu> Date: Fri, 20 Mar 2015 01:41:28 +0000 Subject: [PATCH] a role to update a debian based system early in the boot sequence --- roles/apt-get-upgrade/tasks/main.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 roles/apt-get-upgrade/tasks/main.yml diff --git a/roles/apt-get-upgrade/tasks/main.yml b/roles/apt-get-upgrade/tasks/main.yml new file mode 100644 index 00000000..49e0217a --- /dev/null +++ b/roles/apt-get-upgrade/tasks/main.yml @@ -0,0 +1,10 @@ +--- +- name: apt-get update + apt: update_cache=True + sudo: true + when: ansible_os_family=="Debian" + +- name: apt-get upgrade + apt: upgrade=safe + sudo: true + when: ansible_os_family=="Debian" -- GitLab