fixup for experimental gh releases
This commit is contained in:
parent
55e913178d
commit
e0973862de
3 changed files with 14 additions and 3 deletions
|
@ -36,4 +36,4 @@
|
|||
mode: "0644"
|
||||
checksum: sha256:https://github.com/{{ gh_user }}/{{ gh_project }}/releases/download/{{ release_latest['tag'] }}/{{ release_checksum }}
|
||||
when: not release_local.stat.exists
|
||||
notify: "archive updated"
|
||||
notify: "doctl updated"
|
||||
|
|
|
@ -7,6 +7,12 @@
|
|||
gh_bin_dir: "{{ home_dir }}/ghbin"
|
||||
|
||||
tasks:
|
||||
- name: Install user python modules
|
||||
ansible.builtin.pip:
|
||||
name:
|
||||
- github3.py
|
||||
extra_args: --user
|
||||
|
||||
- name: Setup GitHub bin locaiton
|
||||
ansible.builtin.file:
|
||||
path: "{{ gh_bin_dir }}"
|
||||
|
@ -32,7 +38,12 @@
|
|||
gh_project: marksman
|
||||
|
||||
handlers:
|
||||
- name: "archive updated"
|
||||
- name: "doctl updated"
|
||||
ansible.builtin.unarchive:
|
||||
src: "{{ gh_bin_dir }}/{{ release_filename }}"
|
||||
dest: "{{ home_dir }}/bin"
|
||||
|
||||
- name: "starship updated"
|
||||
ansible.builtin.unarchive:
|
||||
src: "{{ gh_bin_dir }}/{{ release_filename }}"
|
||||
dest: "{{ home_dir }}/bin"
|
||||
|
|
|
@ -33,4 +33,4 @@
|
|||
mode: "0644"
|
||||
checksum: sha256:https://github.com/{{ gh_user }}/{{ gh_project }}/releases/download/{{ release_latest['tag'] }}/{{ release_checksum }}
|
||||
when: not release_local.stat.exists
|
||||
notify: "archive updated"
|
||||
notify: "starship updated"
|
||||
|
|
Loading…
Reference in a new issue