From 3264bd2b7972c6e4eb72c5673f629148f0db058f Mon Sep 17 00:00:00 2001 From: jaydee Date: Wed, 17 Dec 2025 17:53:03 +0100 Subject: [PATCH] build --- playbooks/build_tasmota_v2.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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: