Thank you Michel for your suggestions.

On Mon, Mar 21, 2016 at 12:39 PM, Michel blanc <mblanc.netwo...@gmail.com>
wrote:

> Le 21/03/2016 12:30, poiuytrez a écrit :
> > Hello,
> >
> > We are a team of 10 people. Our ansible playbooks are hosted on a git
> > repository. It happens that someone deploys an outdated version of a
> > playbook on machine because he forgot to do a git pull before deploying.
> > Do you have a strategy to avoid this issue?
>
>
> Hi Guillaume,
>
> I see two quick solutions:
>
> - have people login to a bastion host which serves as a deployment
> machine (may be some 'git checkout && git pull' trick in .bashrc)
> - use tags, deploy a "version" file and do a "remote_tag |
> version_compare(current_tag, '>=')"; this woould involve some local
> tricks to get the latest tag (e.g. git describe --always --tag | cut -f
> 1 -d'-').
>
> However the latter is really workflow dependent, and requires some
> discipline setting tags (and thus might just move the problem elsewhere
> instead of fixing it).
>
> M
> --
> { :github => "@leucos", :twitter => "@b9m", :gpg => "0X24B35C22" }
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Ansible Project" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/ansible-project/IecbY7TS0wE/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> ansible-project+unsubscr...@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/56EFDD7A.3080600%40gmail.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAAA%2BwSD%3DAxQ5R2EuneWFpOspqYSyjyOBqEgNPcjkkbY2k_ZWdQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to