nomad/ansible/bin/get-changed-apt.sh
2023-03-18 13:13:16 +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'"