nomad/ansible/bin/get-changed-apt.sh
2023-03-15 00:19:55 +00:00

3 lines
146 B
Bash
Executable file

#!/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'"