Skip to content

Instantly share code, notes, and snippets.

@morungos
Created June 15, 2017 15:03
Show Gist options
  • Save morungos/064e0e52e13535f62d56206a036a7c51 to your computer and use it in GitHub Desktop.
Save morungos/064e0e52e13535f62d56206a036a7c51 to your computer and use it in GitHub Desktop.
Ansible plays to build a table of pushed deployments
---
- name: "Local action: Mark the deployment"
local_action: shell echo '|' `git log -n1 | grep -E "^commit"` '|' {{inventory_hostname}} '|' `date` '|' `whoami` '|' >> deploy.md
run_once: yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment