From a65064d2506b9b03f9a06e6a678530a5faaba344 Mon Sep 17 00:00:00 2001 From: CaptainArk Date: Sun, 31 Jan 2016 15:44:13 +0100 Subject: [PATCH] debian ansible playbook #5 --- ...ible.html => debian-updates-with-ansible.html} | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) rename output/{update-debian-with-ansible.html => debian-updates-with-ansible.html} (96%) diff --git a/output/update-debian-with-ansible.html b/output/debian-updates-with-ansible.html similarity index 96% rename from output/update-debian-with-ansible.html rename to output/debian-updates-with-ansible.html index 48d47fe..607a247 100644 --- a/output/update-debian-with-ansible.html +++ b/output/debian-updates-with-ansible.html @@ -9,7 +9,7 @@ - Update Debian with Ansible + Debian updates with Ansible @@ -44,8 +44,8 @@ - - + + @@ -88,7 +88,7 @@
-

Update Debian with Ansible

+

Debian updates with Ansible

Posted by Antoine Joubert on Sun 31 January 2016 @@ -109,7 +109,7 @@

Introduction

I've recently bought a HP Proliant Microserver Gen8 to play around with LXC and try new stuff.

From the 4 Debian machines I had to keep up-to-date, I now have 7, so it became quite time-consumming to manually SSH to each of them whenever an update became available.

-

I ended up looking at Ansible to speed up the process and, within an hour, I had a working playbook that updates the debian packages, pip packages and git repos on all of my servers with a single command.

+

I ended up looking at Ansible to speed up the process and, within an hour, I had a working playbook that updates the debian packages, pip packages and git repos installed on all of my servers with a single command.

I figured I'd share the playbook I use to update the Debian packages !

The playbook

I modified this gist to only use apt-get instead of both apt-get and aptitude.

@@ -129,6 +129,7 @@ when: (updates.stdout_lines) - name: upgrade packages apt: upgrade=dist + when: (updates.stdout_lines) - name: check what the new version is shell: lsb_release -r | awk '{print $2}' changed_when: False @@ -165,8 +166,8 @@