You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
local_action: shell git status | grep "up-to-date with 'origin/master'"
ignore_errors: True
register: git_up_to_date
- name: fail if git not up to date
local_action: fail msg="Please pull / push the latest changes to the playbooks repo before deploying."
when: git_up_to_date | failed
- name: run git diff
local_action: command git status -s
register: git_uncomitted_changes
- name: fail if there are uncommitted changes
local_action: fail msg="Please commit and push your changes to the playbooks repo before deploying, and make sure there are no unstaged files in the playbooks repo."