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
|
- 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 }}"
|
Loading…
Reference in a new issue