Update ansible/playbooks/git-pull-reset.yml
This commit is contained in:
parent
590620af22
commit
4294e859df
1 changed files with 4 additions and 4 deletions
|
@ -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 }}"
|
Loading…
Add table
Reference in a new issue