Update ansible/playbooks/git-pull-reset.yml

This commit is contained in:
Matt Reeves 2024-08-13 21:05:30 -04:00
parent 590620af22
commit 4294e859df

View file

@ -2,8 +2,8 @@
- name: Reset and Pull Git Repository
hosts: all
tasks:
- name: Change to Auto-Homelab directory
shell: cd ~/Auto-Homelab
- name: Change to iac directory
shell: cd ~/iac
args:
chdir: "/home/{{ ansible_user }}"
environment:
@ -12,13 +12,13 @@
- name: Git Pull
shell: git pull
args:
chdir: "/home/{{ ansible_user }}/Auto-Homelab"
chdir: "/home/{{ ansible_user }}/iac"
environment:
HOME: "/home/{{ ansible_user }}"
- name: Git Reset
shell: git reset --hard origin/main
args:
chdir: "/home/{{ ansible_user }}/Auto-Homelab"
chdir: "/home/{{ ansible_user }}/iac"
environment:
HOME: "/home/{{ ansible_user }}"