Skip to content

Instantly share code, notes, and snippets.

View cinnion's full-sized avatar

Douglas Needham cinnion

View GitHub Profile
@cinnion
cinnion / run-act-jobs.sh
Created November 2, 2024 06:01
A shell script to run all the act jobs one-by-one, with a `git status` before the run.
#!/bin/bash -x
git status
for j in $(act -l pull_request | cut -c8-39 | grep -v 'Job ID' | tr -d ' ')
do
printf "\f\nRunning job \"%s\"\n" "${j}"
time act -j "${j}"
done
@cinnion
cinnion / gather-facts.sh
Last active October 19, 2024 20:21
An ansible playbook and shell script wrapper (for cron) to gather facts, including what virtualization guests might be running on a virtualization host. (And yes, the quotes might be wonky on the debug output at the moment).
#!/bin/bash
export PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/root/bin
export ANSIBLE_GATHERING=implicit
script -f -c 'time ansible-playbook --key-file /root/.ssh/id_rsa_ansible /etc/ansible/playbooks/gather-facts.yml' /tmp/ansible-gather-facts.log