# Automate git tag deployment

**URL:** <https://forum.ansible.com/t/automate-git-tag-deployment/37069>\
**Category:** Ansible Project\
**Created:** [September 6, 2022, 11:56am UTC](https://forum.ansible.com/t/automate-git-tag-deployment/37069 "2022-09-06T11:56:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Emanuel\_Gonzalez](https://avatars.discourse-cdn.com/v4/letter/e/b3f665/32.png) [@Emanuel\_Gonzalez](https://forum.ansible.com/u/Emanuel_Gonzalez)\
**Post date:** [September 6, 2022, 11:56am UTC](https://forum.ansible.com/t/automate-git-tag-deployment/37069/1 "2022-09-06T11:56:02Z")

</div>

Guys, I’ll tell you what procedure we do in our devops area when we have to deploy a new app label.

The Infrastructure is located in Amazon, we have two gitlab in different regions, one gitlab for dev environment and one for prod environment.

When a new tag for the application is created from the dev area, I run git fetch --tags from my local computer.

Then I upload the new tags by doing a git push --tags to the instance that requires the new tag. From the instance I run the following:

git fetch --tags

git reset --hard version\_number (example git reset --hard 1.0)

I Can’t find a git module in ansible to make a git fetch, is there any power to automate this?

Any help?
