We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 590620a commit 4294e85Copy full SHA for 4294e85
ansible/playbooks/git-pull-reset.yml
@@ -2,8 +2,8 @@
2
- name: Reset and Pull Git Repository
3
hosts: all
4
tasks:
5
- - name: Change to Auto-Homelab directory
6
- shell: cd ~/Auto-Homelab
+ - name: Change to iac directory
+ shell: cd ~/iac
7
args:
8
chdir: "/home/{{ ansible_user }}"
9
environment:
@@ -12,13 +12,13 @@
12
- name: Git Pull
13
shell: git pull
14
15
- chdir: "/home/{{ ansible_user }}/Auto-Homelab"
+ chdir: "/home/{{ ansible_user }}/iac"
16
17
HOME: "/home/{{ ansible_user }}"
18
19
- name: Git Reset
20
shell: git reset --hard origin/main
21
22
23
24
0 commit comments