ansible/playbooks/build_tasmota_v2.yml
2024-05-27 14:28:09 +02:00

30 lines
1.2 KiB
YAML

- hosts: nas
name: Build tasmota
ignore_unreachable: false
# vars:
# DOCKER_IMAGE: docker-tasmota
# FWS: tasmota
tasks:
- name: Build tasmota
ansible.builtin.shell:
cmd: 'git fetch https://github.com/arendst/Tasmota.git development'
chdir: /share/docker_data/docker-tasmota/Tasmota
when: inventory_hostname in groups['nas']
- name: Copy platformio_override
ansible.builtin.shell:
cmd: 'cp platformio_override.ini Tasmota/platformio_override.ini'
chdir: /share/docker_data/docker-tasmota/
when: inventory_hostname in groups['nas']
- name: Copy user_config_override
ansible.builtin.shell:
cmd: 'cp user_config_override.h Tasmota/tasmota/user_config_override.h'
chdir: /share/docker_data/docker-tasmota/
when: inventory_hostname in groups['nas']
- name: Build tasmota
ansible.builtin.shell:
cmd: '/share/ZFS530_DATA/.qpkg/container-station/bin/docker run --rm -v /share/docker_data/docker-tasmota/Tasmota:/tasmota -u $UID:$GID {{ DOCKER_IMAGE }} -e {{ FWS }}'
chdir: /share/docker_data/docker-tasmota/
when: inventory_hostname in groups['nas']