ansible/tasks/setup_lightburn.yaml

25 lines
699 B
YAML

- become: yes
hosts: all
vars_files: secrets.yaml
tasks:
- block:
- name: Create folder for LightBurn
file:
path: ~/lightburn
state: directory
- name: Get latest version
uri:
url: "https://github.com/LightBurnSoftware/deployment/raw/refs/heads/master/currentversion.json"
return_content: true
register: lb_latest
- name: Download latest
loop: "{{lb_latest}}"
when: unix64_app in item
get_url:
dest: ~/lightburn/
url: "{{item.file}}"
vars:
- ansible_become_user: "{{users[0].name}}"
- ansible_become_password: "{{users[0].password}}"