adding dust as a trial
This commit is contained in:
parent
b4d96f4720
commit
34b3f3ccb8
@ -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)
|
# 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'
|
# @nicks:irc/im.site#channel'
|
||||||
authors:
|
authors:
|
||||||
- your name <example@domain.com>
|
- Yanick Champoux <yanick@babyl.ca>
|
||||||
|
|
||||||
|
|
||||||
### OPTIONAL but strongly recommended
|
### OPTIONAL but strongly recommended
|
1
roles/dust/defaults/main.yml
Normal file
1
roles/dust/defaults/main.yml
Normal file
@ -0,0 +1 @@
|
|||||||
|
dust_target_version: 0.8.0
|
15
roles/dust/tasks/install.yml
Normal file
15
roles/dust/tasks/install.yml
Normal 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
|
8
roles/dust/tasks/main.yml
Normal file
8
roles/dust/tasks/main.yml
Normal 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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user