ansible-log: get ansible-playbook command line

This commit is contained in:
Victor LABORIE 2017-07-20 11:17:30 +02:00
parent ef79778190
commit 18511c6fba

View file

@ -1,5 +1,12 @@
#!/bin/sh
ppid=$(ps -p "$$" -o ppid=)
pppid=$(ps -p "$ppid" -o ppid=)
ppppid=$(ps -p "$pppid" -o ppid=)
ps --pid "$ppppid" -o command=
echo ""
git config --get remote.origin.url
git log --pretty="%h - %s" -3