New Relic は無料版でもいつデプロイしたかどうかを記録する事ができます。
(参考NewRelicページ)
Ansibleではnewrelic_deploymentを使えば簡単にできます。
以下は抜粋ですが、こんな風にすればいけます。
なお、環境変数にNEWRELIC_API_KEYは設定しています。
- name: checkout repository
git: repo={{ repository }}
dest={{ dest }}
version={{ branch }}
accept_hostkey=yes
register: gitresult
- name: notify deployment to New Relic
newrelic_deployment: token={{ lookup('env', 'NEWRELIC_API_KEY') }}
application_id={{ newrelic_app_id}}
revision={{ gitresult.after }}
description={{ branch}}