ansible/roles/common/tasks/main.yml in subspace-2.5 vs ansible/roles/common/tasks/main.yml in subspace-2.5.1

- old
+ new

@@ -127,10 +127,10 @@ - name: Get os_upgrades stats shell: cmd: | sed -n "/$(date '+%Y-%m')/,+2p" updates.log | # Groups of lines from the current month - grep 'packages' | # Only lines matching 'packages' + grep 'packages\|immediately' | # Only lines matching 'packages' or 'immediately' grep -P -o '(^\d+)' | #Extract the numbers at the beginning of the lines awk '{s+=$1} END {print s}' # Sum all the lines args: chdir: /opt/subspace register: stats_os_upgrades