diff --git a/yanick/misc/README.md b/README.md similarity index 100% rename from yanick/misc/README.md rename to README.md diff --git a/yanick/misc/galaxy.yml b/galaxy.yml similarity index 98% rename from yanick/misc/galaxy.yml rename to galaxy.yml index 1f52225..a61c709 100644 --- a/yanick/misc/galaxy.yml +++ b/galaxy.yml @@ -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 (url) # @nicks:irc/im.site#channel' authors: -- your name +- Yanick Champoux ### OPTIONAL but strongly recommended diff --git a/yanick/misc/plugins/README.md b/plugins/README.md similarity index 100% rename from yanick/misc/plugins/README.md rename to plugins/README.md diff --git a/roles/dust/defaults/main.yml b/roles/dust/defaults/main.yml new file mode 100644 index 0000000..3fee2ec --- /dev/null +++ b/roles/dust/defaults/main.yml @@ -0,0 +1 @@ +dust_target_version: 0.8.0 diff --git a/roles/dust/tasks/install.yml b/roles/dust/tasks/install.yml new file mode 100644 index 0000000..55c8bce --- /dev/null +++ b/roles/dust/tasks/install.yml @@ -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 diff --git a/roles/dust/tasks/main.yml b/roles/dust/tasks/main.yml new file mode 100644 index 0000000..be1c2b8 --- /dev/null +++ b/roles/dust/tasks/main.yml @@ -0,0 +1,8 @@ +- command_info: + command_name: dust + target_version: '{{dust_target_version}}' + register: installed + +- when: installed.needs_upgrade + import_tasks: ./install.yml +