Skip to content

Commit

Permalink
try proper git clone
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksanderbl29 committed May 30, 2024
1 parent 41d97e4 commit 69b49d3
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions tasks/git-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@
name: git
state: present

- name: CLONE GIT REPO | Shell
ansible.builtin.shell:
cmd: "cd homelab && git pull"
# - name: CLONE GIT REPO | Shell
# ansible.builtin.shell:
# cmd: "cd homelab && git pull"

# - name: CLONE GIT REPO | Clone General Git Repositories
# ansible.builtin.git:
# repo: "https://github.com/{{ item.repo }}"
# dest: "{{ item.dest }}"
# version: "{{ item.version }}"
# force: true
# depth: 1
# become: false
# with_items:
# - {repo: 'aleksanderbl29/homelab', dest: '/home/{{ ansible_user }}/homelab', version: 'main'}
- name: CLONE GIT REPO | Clone General Git Repositories
ansible.builtin.git:
repo: "https://github.com/{{ item.repo }}"
dest: "{{ item.dest }}"
version: "{{ item.version }}"
force: true
depth: 1
become: false
with_items:
- {repo: 'aleksanderbl29/homelab', dest: '/home/{{ ansible_user }}/homelab', version: 'main'}
# notify: HANDLER | Restart services

- name: CLONE GIT REPO | Clone HomeAssistant Repository
Expand Down

0 comments on commit 69b49d3

Please sign in to comment.