adding dust as a trial

This commit is contained in:
Yanick Champoux 2022-03-30 15:43:35 -04:00
parent b4d96f4720
commit 34b3f3ccb8
6 changed files with 25 additions and 1 deletions

View File

@ -17,7 +17,7 @@ readme: README.md
# A list of the collection's content authors. Can be just the name or in the format 'Full Name <email> (url)
# @nicks:irc/im.site#channel'
authors:
- your name <example@domain.com>
- Yanick Champoux <yanick@babyl.ca>
### OPTIONAL but strongly recommended

View File

@ -0,0 +1 @@
dust_target_version: 0.8.0

View File

@ -0,0 +1,15 @@
- 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

View File

@ -0,0 +1,8 @@
- command_info:
command_name: dust
target_version: '{{dust_target_version}}'
register: installed
- when: installed.needs_upgrade
import_tasks: ./install.yml