From e66cad92aeb77f052f11dd81d7b9a48b33d19cb5 Mon Sep 17 00:00:00 2001 From: CaptainArk Date: Thu, 2 Jun 2016 19:45:14 +0200 Subject: [PATCH] fixing debian packages that need to be updated listing --- content/debian-update-with-ansible.md | 2 +- output/debian-updates-with-ansible.html | 2 +- output/rss.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/content/debian-update-with-ansible.md b/content/debian-update-with-ansible.md index 5718a6a..12bb02c 100644 --- a/content/debian-update-with-ansible.md +++ b/content/debian-update-with-ansible.md @@ -22,7 +22,7 @@ I modified [this gist](https://gist.github.com/maethor/380676f6b1cec8cc7439) to apt: update_cache=yes - name: list packages to upgrade (1/2) - shell: apt-get upgrade --show-upgraded --assume-no | grep -A1 'The following packages will be upgraded:' | sed '1d;s/ //;s/ /\n/g' + shell: apt-get upgrade -s -V | awk '/=>/{print $1}' register: updates changed_when: False diff --git a/output/debian-updates-with-ansible.html b/output/debian-updates-with-ansible.html index 7e3225b..b2b3d16 100644 --- a/output/debian-updates-with-ansible.html +++ b/output/debian-updates-with-ansible.html @@ -128,7 +128,7 @@ apt: update_cache=yes - name: list packages to upgrade (1/2) - shell: apt-get upgrade --show-upgraded --assume-no | grep -A1 'The following packages will be upgraded:' | sed '1d;s/ //;s/ /\n/g' + shell: apt-get upgrade -s -V | awk '/=>/{print $1}' register: updates changed_when: False diff --git a/output/rss.xml b/output/rss.xml index b8a9830..8953a3e 100644 --- a/output/rss.xml +++ b/output/rss.xml @@ -638,7 +638,7 @@ bind &#39;&quot;&#39; choose-window <span class="l l-Scalar l-Scalar-Plain">apt</span><span class="p p-Indicator">:</span> <span class="l l-Scalar l-Scalar-Plain">update_cache=yes</span> <span class="p p-Indicator">-</span> <span class="l l-Scalar l-Scalar-Plain">name</span><span class="p p-Indicator">:</span> <span class="l l-Scalar l-Scalar-Plain">list packages to upgrade (1/2)</span> - <span class="l l-Scalar l-Scalar-Plain">shell</span><span class="p p-Indicator">:</span> <span class="l l-Scalar l-Scalar-Plain">apt-get upgrade --show-upgraded --assume-no | grep -A1 &#39;The following packages will be upgraded:&#39; | sed &#39;1d;s/ //;s/ /\n/g&#39;</span> + <span class="l l-Scalar l-Scalar-Plain">shell</span><span class="p p-Indicator">:</span> <span class="l l-Scalar l-Scalar-Plain">apt-get upgrade -s -V | awk &#39;/=&gt;/{print $1}&#39;</span> <span class="l l-Scalar l-Scalar-Plain">register</span><span class="p p-Indicator">:</span> <span class="l l-Scalar l-Scalar-Plain">updates</span> <span class="l l-Scalar l-Scalar-Plain">changed_when</span><span class="p p-Indicator">:</span> <span class="l l-Scalar l-Scalar-Plain">False</span>