mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-01-23 20:39:26 +00:00
21 lines
661 B
YAML
21 lines
661 B
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: Build tasmota
|
|
ansible.builtin.shell:
|
|
cmd: 'docker run -it --rm -v /share/docker_data/docker-tasmota/Tasmota:/tasmota -u $UID:$GID {{ DOCKER_IMAGE }} {{ FWS }}'
|
|
chdir: /share/docker_data/docker-tasmota/
|
|
when: inventory_hostname in groups['nas']
|
|
|
|
|