diff --git a/playbooks/build_tasmota_v2.yml b/playbooks/build_tasmota_v2.yml index d7e5abf..e377c50 100644 --- a/playbooks/build_tasmota_v2.yml +++ b/playbooks/build_tasmota_v2.yml @@ -31,4 +31,12 @@ cmd: '/share/ZFS530_DATA/.qpkg/container-station/bin/docker run --rm -v /share/docker_data/docker-tasmota/Tasmota:/tasmota -u $UID:$GID {{ DOCKER_IMAGE }}' chdir: /share/docker_data/docker-tasmota/ when: FWS == "all" - \ No newline at end of file + - name: Create a directory if it does not exist + ansible.builtin.file: + path: /share/docker_data/webhub/fw/{{ BRANCH }} + state: directory + mode: '0755' + - name: Build tasmota + ansible.builtin.shell: + cmd: 'mv Tasmota/build_output/firmware/* /share/docker_data/webhub/fw/{{ BRANCH }}' + when: inventory_hostname in groups['nas'] \ No newline at end of file