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