ansible-yanick-misc/roles/dust/tasks/install.yml

16 lines
340 B
YAML

- set_fact: tmp_dir=/tmp/ansible
- file:
path: '{{tmp_dir}}'
state: directory
- name: download file
get_url:
dest: &dest '{{tmp_dir}}/dust.deb'
url: https://github.com/bootandy/dust/releases/download/v{{dust_target_version}}/du-dust_{{dust_target_version}}_amd64.deb
- name: install
become: yes
apt:
deb: *dest