nomad/ansible/bin/get-changed-apt.sh
2022-12-08 23:00:18 +00:00

3 lines
146 B
Bash

#!/bin/bash
ansible -m shell -i hosts all -a "cmd='grep -E \"^$(date +%Y-%m-%d).+ (install|upgrade) \" /var/log/dpkg.log | cut -d \" \" -f 3-5'"