ansible/playbooks/build_tasmota_v2.yml

21 lines
711 B
YAML
Raw Normal View History

2024-05-27 13:50:47 +02:00
- hosts: nas
name: Build tasmota
ignore_unreachable: false
2024-05-27 14:01:21 +02:00
vars:
DOCKER_IMAGE: docker-tasmota
FWS: tasmota
2024-05-27 13:50:47 +02:00
tasks:
- name: Build tasmota
ansible.builtin.shell:
cmd: 'git fetch https://github.com/arendst/Tasmota.git development'
chdir: /share/docker_data/docker-tasmota/Tasmota
2024-05-27 14:01:21 +02:00
when: inventory_hostname in groups['nas']
- name: Build tasmota
ansible.builtin.shell:
2024-05-27 14:07:19 +02:00
cmd: '/share/ZFS530_DATA/.qpkg/container-station/bin/docker run -it --rm -v /share/docker_data/docker-tasmota/Tasmota:/tasmota -u $UID:$GID {{ DOCKER_IMAGE }} -e {{ FWS }}'
2024-05-27 14:01:21 +02:00
chdir: /share/docker_data/docker-tasmota/
when: inventory_hostname in groups['nas']