diff --git a/playbooks/build_tasmota_v2.yml b/playbooks/build_tasmota_v2.yml index 9b131a2..f3242d5 100755 --- a/playbooks/build_tasmota_v2.yml +++ b/playbooks/build_tasmota_v2.yml @@ -15,7 +15,11 @@ # - name: Pull tasmota # ansible.builtin.shell: # cmd: 'git config --global --add safe.directory /share/docker_data/docker-tasmota/Tasmota' - + - name: Remove existing directory + ansible.builtin.file: + path: /share/docker_data/docker-tasmota/Tasmota + state: absent + - name: Checkout a github repo and use refspec to fetch all pull requests ansible.builtin.git: repo: 'https://github.com/arendst/Tasmota.git' @@ -27,10 +31,7 @@ # ansible.builtin.shell: # cmd: 'git fetch https://github.com/arendst/Tasmota.git {{ BRANCH }}' # chdir: /share/docker_data/docker-tasmota/Tasmota - - name: Remove existing directory - ansible.builtin.file: - path: /share/docker_data/docker-tasmota/Tasmota - state: absent + - name: Git checkout ansible.builtin.git: